2019-11-26 14:57:12 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Allow Lighttpd to log as normal
|
2019-11-27 09:29:07 +00:00
|
|
|
chown -R www-data /var/log/lighttpd && chmod -R u+rw /var/log/lighttpd
|
2019-11-26 14:57:12 +00:00
|
|
|
# Duplicate log entries to stdout/stderr
|
|
|
|
tail -F -n 0 /var/log/lighttpd/access.log /var/log/lighttpd/error.log 2> /dev/null &
|
|
|
|
|
|
|
|
exec "$@"
|