diff options
| author | 2018-09-28 11:53:00 +0200 | |
|---|---|---|
| committer | 2018-09-28 11:53:00 +0200 | |
| commit | 3ae1b57c9d2e23157be54e8fe9865b85872ff9e7 (patch) | |
| tree | e7fa17137ae5fbc88c5131f8691b1276465bec83 /Docker/entrypoint.sh | |
| parent | de0e9351052b484e054899b9528387d1bde0a1c5 (diff) | |
Escape cron step values with backslash (#2032)
* Escape cron step values with backslash
Escape cron step values with backslash in $CRON_MIN
* Change sed delimiter to allow unescaped slashes
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 5b643da93..d4e1808bc 100755 --- a/Docker/entrypoint.sh +++ b/Docker/entrypoint.sh @@ -6,7 +6,7 @@ chown -R :www-data . chmod -R g+r . && chmod -R g+w ./data/ if [ -n "$CRON_MIN" ]; then - sed -r -i "/FreshRSS/s/^[^ ]+ /$CRON_MIN /" /var/spool/cron/crontabs/root + sed -r -i "\#FreshRSS#s#^[^ ]+ #$CRON_MIN #" /var/spool/cron/crontabs/root fi exec "$@" |
