You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 line
419B

  1. #!/bin/bash
  2. set -e
  3. mkdir -p database
  4. chmod 777 database
  5. composer install --no-interaction --quiet
  6. # Runs as root — migrations may create database/app.sqlite owned by root.
  7. php scripts/migrate.php up
  8. # Fix ownership after migrations so www-data (Apache) can write.
  9. # chmod works on Windows volume mounts even when chown is ignored by p9fs.
  10. chmod 777 database
  11. chmod 666 database/app.sqlite
  12. exec apache2-foreground

Powered by TurnKey Linux.