do not start mongod if user specifies a command

This commit is contained in:
Sameer Naik
2015-09-30 22:49:42 +05:30
parent b989d94d93
commit 5af7264173

View File

@@ -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 "$@"