entrypoint.sh 227 B

123456789101112
  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. if [ -n "$CRON_MIN" ]; then
  6. sed -r -i "/FreshRSS/s/^[^ ]+ /$CRON_MIN /" /var/spool/cron/crontabs/root
  7. fi
  8. exec "$@"