mirror of
https://github.com/pi-hole/docker-pi-hole.git
synced 2026-04-21 17:29:12 +01:00
add suggested changes to send logs to stdout
Signed-off-by: edgd1er <edgd1er@hotmail.com>
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
s6-echo "Stopping lighttpd-access-log"
|
||||
pid=$(ps -C cat -o pid=,args= |grep -oP "([0-9]+).+access\.log" |cut -f1 -d" ")
|
||||
if [[ -n ${pid} ]]; then
|
||||
echo "Killing ${pid}"
|
||||
kill -9 ${pid}
|
||||
fi
|
||||
s6-echo "Stopped lighttpd-access-log"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
s6-echo "Redirecting FIFO access log to stdout"
|
||||
s6-echo "Starting lighttpd-access-log"
|
||||
|
||||
s6-setuidgid www-data cat /var/log/lighttpd/access.log 2>&1
|
||||
s6-setuidgid www-data cat /var/log/lighttpd/access.log 2>&1
|
||||
|
||||
Reference in New Issue
Block a user