Files
containers/bitnami/memcached/rootfs/entrypoint.sh
2015-10-03 20:57:27 +05:30

16 lines
286 B
Bash
Executable File

#!/bin/bash
if [ "${1:0:1}" = '-' ]; then
export EXTRA_OPTIONS="$@"
set --
elif [ "${1}" == "memcached" -o "${1}" == "$(which memcached)" ]; then
export EXTRA_OPTIONS="${@:2}"
set --
fi
if [ -n "${1}" ]; then
touch /etc/services.d/$BITNAMI_APP_NAME/down
fi
exec /init "$@"