Fix bug.
This commit is contained in:
parent
5146e22884
commit
a01bec188e
|
@ -62,6 +62,14 @@ else
|
||||||
fi
|
fi
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y mongodb-org=4.4.11 mongodb-org-server=4.4.11 mongodb-org-shell=4.4.11 mongodb-org-mongos=4.4.11 mongodb-org-tools=4.4.11
|
sudo apt-get install -y mongodb-org=4.4.11 mongodb-org-server=4.4.11 mongodb-org-shell=4.4.11 mongodb-org-mongos=4.4.11 mongodb-org-tools=4.4.11
|
||||||
|
sudo service mongod restart
|
||||||
|
sleep 10
|
||||||
|
if [ -f /tmp/mongodb-27017.sock ]; then
|
||||||
|
echo "Mongo start success!"
|
||||||
|
else
|
||||||
|
echo "mongo not yet start!"
|
||||||
|
echo "Please check mongo status!"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo "mongo not yet start!"
|
echo "mongo not yet start!"
|
||||||
echo "Please check mongo status!"
|
echo "Please check mongo status!"
|
||||||
|
|
Loading…
Reference in New Issue