mirror of
https://github.com/bitnami/containers.git
synced 2026-04-02 15:27:45 +08:00
do not start mongod if user specifies a command
This commit is contained in:
@@ -8,4 +8,9 @@ elif [ "${1}" == "mongod" -o "${1}" == "$(which mongod)" ]; then
|
||||
set --
|
||||
fi
|
||||
|
||||
if [ -n "${1}" ]; then
|
||||
touch /etc/services.d/$BITNAMI_APP_NAME/down
|
||||
touch /etc/services.d/$BITNAMI_APP_NAME-logs/down
|
||||
fi
|
||||
|
||||
exec /init "$@"
|
||||
|
||||
Reference in New Issue
Block a user