aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2020-05-12 22:47:13 +0200
committerGravatar GitHub <noreply@github.com> 2020-05-12 22:47:13 +0200
commitdf9c0ae6f1bad8ccbb9eb47b95b8d982fc74e627 (patch)
tree40d3ccf51a60b5bb5b4b1f9a9d0b93d1fd4f9284
parent2bbc579d726af1c2a68524933117c65aa4d7ea91 (diff)
Fix Docker FRESHRSS_ENV for cron (#2963)
cron job was not passed the environment variable FRESHRSS_ENV as it should This resulted in messages during cron to not be logged according to FRESHRSS_ENV level
-rwxr-xr-xDocker/entrypoint.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/Docker/entrypoint.sh b/Docker/entrypoint.sh
index 02338c35e..63126aa25 100755
--- a/Docker/entrypoint.sh
+++ b/Docker/entrypoint.sh
@@ -14,6 +14,7 @@ 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"
+ echo "export FRESHRSS_ENV=$FRESHRSS_ENV"
) >/var/www/FreshRSS/Docker/env.txt
crontab -l | sed -r "\\#FreshRSS#s#^[^ ]+ #$CRON_MIN #" | crontab -
fi