entrypoint.sh 329 B

1234567891011121314
  1. #!/bin/sh
  2. php -f ./cli/prepare.php > /dev/null
  3. chown -R :www-data .
  4. chmod -R g+r . && chmod -R g+w ./data/
  5. find /etc/php*/ -name php.ini -exec sed -r -i "\#^;?date.timezone#s#^.*#date.timezone = $TZ#" {} \;
  6. if [ -n "$CRON_MIN" ]; then
  7. sed -r -i "\#FreshRSS#s#^[^ ]+ #$CRON_MIN #" /var/spool/cron/crontabs/root
  8. fi
  9. exec "$@"