16 lines
515 B
Bash
Executable File
16 lines
515 B
Bash
Executable File
#!/bin/sh
|
|
DEFAULT_LOG_LEVEL="error"
|
|
|
|
# Disable CustomLog, that is configured by default in upstream.
|
|
sed -i -e 's:^\(\s*\)\(CustomLog\s\s*"logs/access_log"\):\1# Disabled by /docker-entrypoint.sh # \2:' \
|
|
/etc/httpd/conf/httpd.conf
|
|
|
|
# Remove left-overs from an incomplete shutdown previously.
|
|
rm -rf /run/httpd/* /tmp/httpd*
|
|
|
|
if test "X${SERVER_ADMIN}" != "X" ; then
|
|
set -- -c "ServerAdmin $SERVER_ADMIN" "$@"
|
|
fi
|
|
set -- -c "LogLevel ${LOG_LEVEL:-${DEFAULT_LOG_LEVEL}}" "$@"
|
|
exec /usr/sbin/httpd -DFOREGROUND "$@"
|