mirror of
https://github.com/bitnami/containers.git
synced 2026-03-08 18:57:19 +08:00
allow users to pass arguments to httpd
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
#!/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
|
||||
|
||||
@@ -5,4 +5,4 @@ source $BITNAMI_PREFIX/bitnami-utils.sh
|
||||
# Remove zombie pidfile
|
||||
rm -f $BITNAMI_APP_DIR/logs/httpd.pid
|
||||
|
||||
exec httpd -DFOREGROUND -f $BITNAMI_APP_DIR/conf/httpd.conf
|
||||
exec httpd -DFOREGROUND -f $BITNAMI_APP_DIR/conf/httpd.conf ${EXTRA_OPTIONS:+"$EXTRA_OPTIONS"}
|
||||
|
||||
Reference in New Issue
Block a user