UPD: so many improvements :)

This commit is contained in:
2019-04-13 15:34:59 +02:00
parent aa1a4dbc72
commit d219a6101f
18 changed files with 111 additions and 39 deletions

View File

@@ -0,0 +1,16 @@
#!/bin/sh
# 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
if test "X${LOG_LEVEL}" != "X" ; then
set -- -c "LogLevel $LOG_LEVEL" "$@"
fi
exec /usr/sbin/httpd -DFOREGROUND "$@"