You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo"mongod auth is ENABLED, manual upgrade will be required"
12
-
exit 0
13
-
fi
14
-
15
10
if [ -x"$(command -v mongo)" ];then
16
11
ifecho"$VER"| grep -q -i "4.0";then
17
12
ifecho"$FEATVER"| grep -q -i "3.6";then
@@ -102,10 +97,13 @@ if [ -f /etc/lsb-release ]; then
102
97
fi
103
98
#nc not available on latest centos
104
99
#until nc -z localhost 27017; do echo Waiting for MongoDB; sleep 1; done
105
-
mongo --nodb --eval 'var conn; print("Waiting for MongoDB connection"); while(!conn){try{conn = new Mongo("localhost:27017");}catch(Error){}sleep(1000);}'
100
+
mongo --nodb --eval 'var conn; print("Waiting for MongoDB connection on port 27017. Exit if incorrect port"); while(!conn){try{conn = new Mongo("localhost:27017");}catch(Error){}sleep(1000);}'
Copy file name to clipboardexpand all lines: bin/upgrade/20.11/upgrade.mongo.42.sh
+9-6
Original file line number
Diff line number
Diff line change
@@ -103,10 +103,13 @@ fi
103
103
104
104
#nc not available on latest centos
105
105
#until nc -z localhost 27017; do echo Waiting for MongoDB; sleep 1; done
106
-
mongo --nodb --eval 'var conn; print("Waiting for MongoDB connection"); while(!conn){try{conn = new Mongo("localhost:27017");}catch(Error){}sleep(1000);}'
106
+
mongo --nodb --eval 'var conn; print("Waiting for MongoDB connection on port 27017. Exit if incorrect port"); while(!conn){try{conn = new Mongo("localhost:27017");}catch(Error){}sleep(1000);}'
Copy file name to clipboardexpand all lines: bin/upgrade/20.11/upgrade.mongo.44.sh
+9-6
Original file line number
Diff line number
Diff line change
@@ -103,10 +103,13 @@ fi
103
103
104
104
#nc not available on latest centos
105
105
#until nc -z localhost 27017; do echo Waiting for MongoDB; sleep 1; done
106
-
mongo --nodb --eval 'var conn; print("Waiting for MongoDB connection"); while(!conn){try{conn = new Mongo("localhost:27017");}catch(Error){}sleep(1000);}'
106
+
mongo --nodb --eval 'var conn; print("Waiting for MongoDB connection on port 27017. Exit if incorrect port"); while(!conn){try{conn = new Mongo("localhost:27017");}catch(Error){}sleep(1000);}'
0 commit comments