Files
docker-django-test/container-files/docker-entrypoint.sh
2019-04-13 15:34:59 +02:00

17 lines
507 B
Bash
Executable File

#!/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 "$@"