pixelfed/entrypoint.sh

22 lines
492 B
Bash
Raw Normal View History

2020-05-28 16:18:10 +00:00
#!/usr/bin/env bash
cp -r storage.skel/* storage/
2020-05-29 11:12:33 +00:00
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
2020-05-28 16:18:10 +00:00
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