Files
FreshRSS/Docker/entrypoint.sh
Jan 3ae1b57c9d 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
2018-09-28 11:53:00 +02:00

13 lines
228 B
Bash
Executable File

#!/bin/sh
php -f ./cli/prepare.php > /dev/null
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
fi
exec "$@"