aboutsummaryrefslogtreecommitdiff
path: root/Docker/entrypoint.sh
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2019-04-02 14:21:34 +0200
committerGravatar GitHub <noreply@github.com> 2019-04-02 14:21:34 +0200
commit32dd2e3c33e0cb569b8e50a4cc203a73146e3f29 (patch)
tree546361938ee80f68585966ec7ee3e6211adc9949 /Docker/entrypoint.sh
parentc48e28baf62ce21529e219311de5d113743cde4e (diff)
Docker better use of crontab (#2326)
Misc. from https://github.com/FreshRSS/FreshRSS/pull/2325 https://github.com/FreshRSS/FreshRSS/issues/2319
Diffstat (limited to 'Docker/entrypoint.sh')
-rwxr-xr-xDocker/entrypoint.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/Docker/entrypoint.sh b/Docker/entrypoint.sh
index 528388073..9db5c8185 100755
--- a/Docker/entrypoint.sh
+++ b/Docker/entrypoint.sh
@@ -8,7 +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
- sed -r -i "\#FreshRSS#s#^[^ ]+ #$CRON_MIN #" /var/spool/cron/crontabs/root
+ crontab -l | sed -r "\#FreshRSS#s#^[^ ]+ #$CRON_MIN #" | crontab -
fi
exec "$@"