Archived
2
0
Fork 0
forked from blallo/Feedati

FIX apache logging

This commit is contained in:
boyska 2018-08-17 15:44:48 +02:00
parent 4b2d2fddce
commit 1b2cc679e3

View file

@ -19,8 +19,8 @@ RUN mkdir -p /app/public/tt-rss/ /var/cache/tt-rss/images \
sed -i '/cgroup_add_service$/d' /lib/rc/sh/openrc-run.sh &&\
sed -i '/^ntpd/d' /bootstrap/start.sh &&\
echo -e 'log_errors = On\nerror_log = syslog' >> /etc/php7/php.ini &&\
sed -i -r 's@ErrorLog .*@ErrorLog "| logger -n syslog -T -P 514 -t apacheErr"@i' /etc/apache2/httpd.conf &&\
echo 'TransferLog "| logger -n syslog -T -P 514 -t apacheLog"' >> /etc/apache2/httpd.conf
sed -i -r 's@ErrorLog .*@ErrorLog "|/usr/bin/logger -n syslog -T -P 514 -t apacheErr"@i' /etc/apache2/httpd.conf &&\
echo 'TransferLog "|/usr/bin/logger -n syslog -T -P 514 -t apacheLog"' >> /etc/apache2/httpd.conf
RUN apk --no-cache add util-linux
COPY tt-rss/* /app/public/tt-rss/