update bastion

This commit is contained in:
Quinten
2022-12-15 16:02:31 +01:00
committed by GitHub
parent 0f336f3f95
commit 2bc577c6d1
2 changed files with 12 additions and 5 deletions

View File

@@ -9,5 +9,11 @@ export INTERNAL_IP
MODIFIED_STARTUP=$(echo -e $(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g'))
echo -e ":/home/container$ ${MODIFIED_STARTUP}"
# start mongo
mongod --fork --dbpath /home/container/mongodb/ --port 27017 --logpath /home/container/mongod.log && until nc -z -v -w5 127.0.0.1 27017; do echo 'Waiting for mongodb connection...'; sleep 5; done
# Run the Server
eval ${MODIFIED_STARTUP}
# stop mongo
mongo --eval \"db.getSiblingDB('admin').shutdownServer()\