File tree Expand file tree Collapse file tree 4 files changed +28
-0
lines changed Expand file tree Collapse file tree 4 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,13 @@ if [ "$originalArgOne" = 'mongod' ]; then
123
123
done
124
124
125
125
if [ -z " $definitelyAlreadyInitialized " ]; then
126
+ if _mongod_hack_have_arg --config " $@ " ; then
127
+ echo >&2
128
+ echo >&2 ' warning: database is not yet initialized, and "--config" is specified'
129
+ echo >&2 ' the initdb database startup might fail as a result!'
130
+ echo >&2
131
+ fi
132
+
126
133
pidfile=" $( mktemp) "
127
134
trap " rm -f '$pidfile '" EXIT
128
135
_mongod_hack_ensure_arg_val --bind_ip 127.0.0.1 " $@ "
Original file line number Diff line number Diff line change @@ -123,6 +123,13 @@ if [ "$originalArgOne" = 'mongod' ]; then
123
123
done
124
124
125
125
if [ -z " $definitelyAlreadyInitialized " ]; then
126
+ if _mongod_hack_have_arg --config " $@ " ; then
127
+ echo >&2
128
+ echo >&2 ' warning: database is not yet initialized, and "--config" is specified'
129
+ echo >&2 ' the initdb database startup might fail as a result!'
130
+ echo >&2
131
+ fi
132
+
126
133
pidfile=" $( mktemp) "
127
134
trap " rm -f '$pidfile '" EXIT
128
135
_mongod_hack_ensure_arg_val --bind_ip 127.0.0.1 " $@ "
Original file line number Diff line number Diff line change @@ -123,6 +123,13 @@ if [ "$originalArgOne" = 'mongod' ]; then
123
123
done
124
124
125
125
if [ -z " $definitelyAlreadyInitialized " ]; then
126
+ if _mongod_hack_have_arg --config " $@ " ; then
127
+ echo >&2
128
+ echo >&2 ' warning: database is not yet initialized, and "--config" is specified'
129
+ echo >&2 ' the initdb database startup might fail as a result!'
130
+ echo >&2
131
+ fi
132
+
126
133
pidfile=" $( mktemp) "
127
134
trap " rm -f '$pidfile '" EXIT
128
135
_mongod_hack_ensure_arg_val --bind_ip 127.0.0.1 " $@ "
Original file line number Diff line number Diff line change @@ -123,6 +123,13 @@ if [ "$originalArgOne" = 'mongod' ]; then
123
123
done
124
124
125
125
if [ -z " $definitelyAlreadyInitialized " ]; then
126
+ if _mongod_hack_have_arg --config " $@ " ; then
127
+ echo >&2
128
+ echo >&2 ' warning: database is not yet initialized, and "--config" is specified'
129
+ echo >&2 ' the initdb database startup might fail as a result!'
130
+ echo >&2
131
+ fi
132
+
126
133
pidfile=" $( mktemp) "
127
134
trap " rm -f '$pidfile '" EXIT
128
135
_mongod_hack_ensure_arg_val --bind_ip 127.0.0.1 " $@ "
You can’t perform that action at this time.
0 commit comments