This commit is contained in:
5
start.sh
5
start.sh
@@ -2,15 +2,12 @@
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
chmod +x /scripts/*
|
||||
ls -l /scripts/
|
||||
|
||||
if [ ! -f /data/db/replS.et ]; then
|
||||
echo "Can't find /data/db/replS.et! Setting up replSet..."
|
||||
touch /data/db/replS.et
|
||||
|
||||
/usr/bin/mongod --bind_ip_all --replSet "$MONGO_REPLICA_SET_NAME" &
|
||||
sleep 5 && bash /scripts/rs-init.sh
|
||||
sleep 5 && bash /app/rs-init.sh
|
||||
fi
|
||||
|
||||
cp "$MONGO_KEY_FILE_PATH" "$MONGO_KEY_FILE_TARGET_PATH"
|
||||
|
||||
Reference in New Issue
Block a user