From 3ae1b57c9d2e23157be54e8fe9865b85872ff9e7 Mon Sep 17 00:00:00 2001 From: Jan Date: Fri, 28 Sep 2018 11:53:00 +0200 Subject: 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 --- Docker/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Docker/entrypoint.sh') 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 "$@" -- cgit v1.2.3