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
pull/2035/head
Jan 6 years ago committed by Alexandre Alapetite
parent de0e935105
commit 3ae1b57c9d
  1. 2
      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 "$@"

Loading…
Cancel
Save