aboutsummaryrefslogtreecommitdiff
path: root/Docker/entrypoint.sh
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2019-04-02 21:47:57 +0200
committerGravatar GitHub <noreply@github.com> 2019-04-02 21:47:57 +0200
commit4599d171df48b16eb6f985291c47c97c1ae5dd01 (patch)
tree06d18c126b8d6df3d738a8ee1f0d5388e87a84a7 /Docker/entrypoint.sh
parentd78366c0beb3074df081fa6210312d7dd1c1de16 (diff)
Docker fix cron logs (#2329)
Fix environment variable bug
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 9db5c8185..b7a961569 100755
--- a/Docker/entrypoint.sh
+++ b/Docker/entrypoint.sh
@@ -8,6 +8,7 @@ chmod -R g+r . && chmod -R g+w ./data/
find /etc/php*/ -name php.ini -exec sed -r -i "\#^;?date.timezone#s#^.*#date.timezone = $TZ#" {} \;
if [ -n "$CRON_MIN" ]; then
+ (echo "export TZ=$TZ" ; 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 -
fi