BookStack/dev/docker/entrypoint.app.sh

16 lines
230 B
Bash
Raw Normal View History

2019-06-23 13:16:45 +02:00
#!/bin/bash
set -e
2019-08-12 22:19:58 +02:00
env
if [[ -n "$1" ]]; then
2019-06-23 13:16:45 +02:00
exec "$@"
else
composer install
2019-06-23 13:16:45 +02:00
wait-for-it db:3306 -t 45
2019-08-12 22:19:58 +02:00
php artisan migrate --database=mysql
2019-06-23 13:16:45 +02:00
chown -R www-data:www-data storage
exec apache2-foreground
fi