BookStack/dev/docker/entrypoint.app.sh
2020-10-01 11:34:56 +02:00

16 lines
230 B
Bash
Executable File

#!/bin/bash
set -e
env
if [[ -n "$1" ]]; then
exec "$@"
else
composer install
wait-for-it db:3306 -t 45
php artisan migrate --database=mysql
chown -R www-data:www-data storage
exec apache2-foreground
fi