mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-03-09 01:46:14 -04:00
15 lines
329 B
Bash
Executable File
15 lines
329 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/
|
|
|
|
find /etc/php*/ -name php.ini -exec sed -r -i "\#^;?date.timezone#s#^.*#date.timezone = $TZ#" {} \;
|
|
|
|
if [ -n "$CRON_MIN" ]; then
|
|
sed -r -i "\#FreshRSS#s#^[^ ]+ #$CRON_MIN #" /var/spool/cron/crontabs/root
|
|
fi
|
|
|
|
exec "$@"
|