mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-03-31 04:33:21 -04:00
* Escape cron step values with backslash Escape cron step values with backslash in $CRON_MIN * Change sed delimiter to allow unescaped slashes
13 lines
228 B
Bash
Executable File
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 "$@"
|