diff options
| author | 2019-04-02 14:21:34 +0200 | |
|---|---|---|
| committer | 2019-04-02 14:21:34 +0200 | |
| commit | 32dd2e3c33e0cb569b8e50a4cc203a73146e3f29 (patch) | |
| tree | 546361938ee80f68585966ec7ee3e6211adc9949 /Docker/entrypoint.sh | |
| parent | c48e28baf62ce21529e219311de5d113743cde4e (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-x | Docker/entrypoint.sh | 2 |
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 "$@" |
