Skip to content

Commit b848b8d

Browse files
orgadsyosifkit
authored andcommitted
Strip keyFile on initialization since it also implies auth
1 parent d328982 commit b848b8d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

4.4/docker-entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ if [ "$originalArgOne" = 'mongod' ]; then
268268
# remove "--auth" and "--replSet" for our initial startup (see https://docs.mongodb.com/manual/tutorial/enable-authentication/#start-mongodb-without-access-control)
269269
# https://github.com/docker-library/mongo/issues/211
270270
_mongod_hack_ensure_no_arg --auth "${mongodHackedArgs[@]}"
271+
_mongod_hack_ensure_no_arg_val --keyFile "${mongodHackedArgs[@]}"
271272
if [ "$MONGO_INITDB_ROOT_USERNAME" ] && [ "$MONGO_INITDB_ROOT_PASSWORD" ]; then
272273
_mongod_hack_ensure_no_arg_val --replSet "${mongodHackedArgs[@]}"
273274
fi

0 commit comments

Comments
 (0)