BookStack/dev/docker/entrypoint.app.sh

16 lines
230 B
Bash
Raw Normal View History

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