Explorar o código

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
Jan %!s(int64=7) %!d(string=hai) anos
pai
achega
3ae1b57c9d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Docker/entrypoint.sh

+ 1 - 1
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 "$@"