Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

31 строка
885B

  1. #!/bin/bash
  2. set -e
  3. mkdir -p database storage
  4. chmod 777 database storage
  5. # Create default cron settings on first deploy
  6. if [ ! -f storage/cron-settings.json ]; then
  7. echo '{"enabled":true,"interval_minutes":30,"last_run":null}' > storage/cron-settings.json
  8. fi
  9. chmod 666 storage/cron-settings.json
  10. # Ensure the import log exists and is writable by both cron (root) and Apache (www-data)
  11. touch storage/import.log
  12. chmod 666 storage/import.log
  13. composer install --no-interaction --quiet
  14. # Runs as root — migrations may create database/app.sqlite owned by root.
  15. php scripts/migrate.php up
  16. # Fix ownership after migrations so www-data (Apache) can write.
  17. # chmod works on Windows volume mounts even when chown is ignored by p9fs.
  18. chmod 777 database
  19. chmod 666 database/app.sqlite
  20. # Start cron daemon for the PrintStream background import
  21. service cron start
  22. exec apache2-foreground

Powered by TurnKey Linux.