Files
project-manager/docker/entrypoint.sh
T

15 lines
461 B
Bash
Raw Normal View History

2026-09-03 17:45:35 +01:00
#!/bin/sh
set -e
# Storage lives outside the app directory when the source is bind-mounted for
# development (see docker-compose.yml); the plain image falls back to ./storage.
STORAGE_DIR="${STORAGE_PATH:-storage}"
mkdir -p "$STORAGE_DIR"
chown -R www-data:www-data "$STORAGE_DIR"
2026-09-03 17:45:35 +01:00
# Apply pending migrations as www-data so the SQLite file it creates stays
# writable by Apache.
su -s /bin/sh -c 'php bin/migrate.php' www-data
exec docker-php-entrypoint "$@"