BookStack/dev/docker/entrypoint.app.sh

16 lines
230 B
Bash
Raw Normal View History

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