mirror of
https://github.com/darksaid98/yolks.git
synced 2026-12-03 14:38:59 +00:00
update bastion
This commit is contained in:
1 parent
0f336f3f95
commit
2bc577c6d1
2 files changed
+12
-5
No files matched your search
@@ -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()\
|
||||
Reference in new issue
Block a user