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
|
|
|
|
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
|