aboutsummaryrefslogtreecommitdiff
path: root/Docker/Dockerfile-Alpine
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/Dockerfile-Alpine
parentd78366c0beb3074df081fa6210312d7dd1c1de16 (diff)
Docker fix cron logs (#2329)
Fix environment variable bug
Diffstat (limited to 'Docker/Dockerfile-Alpine')
-rw-r--r--Docker/Dockerfile-Alpine6
1 files changed, 4 insertions, 2 deletions
diff --git a/Docker/Dockerfile-Alpine b/Docker/Dockerfile-Alpine
index fcaec37da..589d266e5 100644
--- a/Docker/Dockerfile-Alpine
+++ b/Docker/Dockerfile-Alpine
@@ -22,8 +22,10 @@ RUN rm -f /etc/apache2/conf.d/languages.conf /etc/apache2/conf.d/info.conf \
/etc/apache2/httpd.conf && \
sed -r -i "/^\s*(CustomLog|ErrorLog|Listen) /s/^/#/" \
/etc/apache2/httpd.conf && \
- echo "27,57 * * * * su apache -s /bin/sh -c 'php /var/www/FreshRSS/app/actualize_script.php' 2>> /proc/1/fd/2 > /tmp/FreshRSS.log" | \
- crontab -
+ touch /var/www/FreshRSS/Docker/env.txt && \
+ echo "27,57 * * * * . /var/www/FreshRSS/Docker/env.txt; \
+ su apache -s /bin/sh -c 'php /var/www/FreshRSS/app/actualize_script.php' \
+ 2>> /proc/1/fd/2 > /tmp/FreshRSS.log" | crontab -
ENV COPY_SYSLOG_TO_STDERR On
ENV CRON_MIN ''