From b1070e6372b29b22fdd14fb130f29c00418d9e29 Mon Sep 17 00:00:00 2001 From: Astra Date: Mon, 23 Oct 2023 15:30:08 +0200 Subject: [PATCH] Delete entrypoint.fpm.sh --- entrypoint.fpm.sh | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100755 entrypoint.fpm.sh diff --git a/entrypoint.fpm.sh b/entrypoint.fpm.sh deleted file mode 100755 index 8bcdfff..0000000 --- a/entrypoint.fpm.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env bash -set -xeo pipefail - -cp -r storage.skel/* storage/ -chown -R www-data:www-data storage/ bootstrap/ - -php /wait-for-db.php - -if [[ ! -e storage/.docker.init ]] -then - echo "Fresh installation, initializing database..." - gosu www-data php artisan key:generate - gosu www-data php artisan migrate:fresh --force - gosu www-data php artisan passport:keys - echo completed > storage/.docker.init -fi - -gosu www-data php artisan storage:link -gosu www-data php artisan horizon:publish -gosu www-data php artisan config:cache -gosu www-data php artisan cache:clear -gosu www-data php artisan route:cache -gosu www-data php artisan view:cache - -rsync --archive --delete public/ /public/ - -echo "++++ Check for needed migrations... ++++" -# check for migrations -gosu www-data php artisan migrate:status | grep No && migrations=yes || migrations=no -gosu www-data php artisan migrate:status | grep Pending && migrations=yes || migrations=no -if [ "$migrations" = "yes" ]; -then - gosu www-data php artisan migrate --force -fi - -# create instance actor -gosu www-data php artisan instance:actor - -dumb-init docker-php-entrypoint -F