Revert "Align alpine to debian and octane for maintenance"

This commit is contained in:
David Bomba
2025-01-26 09:47:24 +11:00
committed by GitHub
parent 3bf4174cbf
commit c5bb7960c3
14 changed files with 168 additions and 165 deletions

View File

@@ -30,7 +30,7 @@ php artisan optimize
php artisan package:discover
# Check if DB works, if not crash the app.
DB_READY=$(php -d opcache.preload='' artisan tinker --execute='echo app()->call("App\Utils\SystemHealth@dbCheck")["success"];')
DB_READY=$(php artisan tinker --execute='echo app()->call("App\Utils\SystemHealth@dbCheck")["success"];')
if [ "$DB_READY" != "1" ]; then
php artisan migrate:status # Print verbose error
in_error "Error connecting to DB"
@@ -39,7 +39,7 @@ fi
php artisan migrate --force
# If first IN run, it needs to be initialized
IN_INIT=$(php -d opcache.preload='' artisan tinker --execute='echo Schema::hasTable("accounts") && !App\Models\Account::all()->first();')
IN_INIT=$(php artisan tinker --execute='echo Schema::hasTable("accounts") && !App\Models\Account::all()->first();')
if [ "$IN_INIT" == "1" ]; then
docker_process_init_files /docker-entrypoint-init.d/*
fi