23 lines
510 B
Bash
Executable File
23 lines
510 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -xeo pipefail
|
|
|
|
cp -r storage.skel/* storage/
|
|
|
|
if [[ ! -e storage/.docker.init ]];
|
|
then
|
|
echo "Fresh installation, initializing database..."
|
|
php artisan migrate:fresh --force
|
|
php artisan passport:install
|
|
chown www-data:www-data storage/oauth*key
|
|
echo done > storage/.docker.init
|
|
fi
|
|
|
|
php artisan storage:link
|
|
php artisan horizon:assets
|
|
php artisan route:cache
|
|
php artisan view:cache
|
|
php artisan config:cache
|
|
|
|
source /etc/apache2/envvars
|
|
/usr/local/sbin/dumb-init apache2 -DFOREGROUND
|