bitnami-containers/bitnami/apache/rootfs/entrypoint.sh

16 lines
278 B
Bash
Executable File

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