aboutsummaryrefslogtreecommitdiff
path: root/Docker/entrypoint.sh
diff options
context:
space:
mode:
authorGravatar Jan <jaltek@users.noreply.github.com> 2018-09-28 11:53:00 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2018-09-28 11:53:00 +0200
commit3ae1b57c9d2e23157be54e8fe9865b85872ff9e7 (patch)
treee7fa17137ae5fbc88c5131f8691b1276465bec83 /Docker/entrypoint.sh
parentde0e9351052b484e054899b9528387d1bde0a1c5 (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-xDocker/entrypoint.sh2
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 "$@"