aboutsummaryrefslogtreecommitdiff
path: root/Docker/entrypoint.sh
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2019-10-26 11:19:42 +0200
committerGravatar GitHub <noreply@github.com> 2019-10-26 11:19:42 +0200
commit3c49986ec895595edc632da0f14419199ce47667 (patch)
treeba22912ac6dd788df389c00b43252e26ce244686 /Docker/entrypoint.sh
parent623769b5aeb19e0d0b1684d61fce429961e29116 (diff)
New environment variable COPY_LOG_TO_SYSLOG (#2591)
* New environment variable COPY_LOG_TO_SYSLOG False by default. Makes it easy to monitor all logs from Syslog or STDERR (e.g. docker logs). * Suggestion of native constants
Diffstat (limited to 'Docker/entrypoint.sh')
-rwxr-xr-xDocker/entrypoint.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/Docker/entrypoint.sh b/Docker/entrypoint.sh
index dcbd7e231..02338c35e 100755
--- a/Docker/entrypoint.sh
+++ b/Docker/entrypoint.sh
@@ -12,6 +12,7 @@ find /etc/php*/ -name php.ini -exec sed -r -i "\\#^;?upload_max_filesize#s#^.*#u
if [ -n "$CRON_MIN" ]; then
(
echo "export TZ=$TZ"
+ echo "export COPY_LOG_TO_SYSLOG=$COPY_LOG_TO_SYSLOG"
echo "export COPY_SYSLOG_TO_STDERR=$COPY_SYSLOG_TO_STDERR"
) >/var/www/FreshRSS/Docker/env.txt
crontab -l | sed -r "\\#FreshRSS#s#^[^ ]+ #$CRON_MIN #" | crontab -