A free open source IT asset/license management system
Follow up for #16341
snipea81c520d9341
diff --git a/.github/workflows/tests-mysql.yml b/.github/workflows/tests-mysql.ymlindex c6f5746152..16190900b0 100644--- a/.github/workflows/tests-mysql.yml+++ b/.github/workflows/tests-mysql.yml@@ -67,7 +67,7 @@ jobs:run: |php artisan key:generatephp artisan migrate --force- php artisan passport:install+ php artisan passport:install --no-interactionchmod -R 777 storage bootstrap/cache- name: Execute tests (Unit and Feature tests) via PHPUnitdiff --git a/.github/workflows/tests-postgres.yml b/.github/workflows/tests-postgres.ymlindex 0d7bf41f92..d111fc87a5 100644--- a/.github/workflows/tests-postgres.yml+++ b/.github/workflows/tests-postgres.yml@@ -65,7 +65,7 @@ jobs:run: |php artisan key:generatephp artisan migrate --force- php artisan passport:install+ php artisan passport:install --no-interactionchmod -R 777 storage bootstrap/cache- name: Execute tests (Unit and Feature tests) via PHPUnitdiff --git a/app/Http/Controllers/DashboardController.php b/app/Http/Controllers/DashboardController.phpindex af9c7ee446..a2ccb62475 100755--- a/app/Http/Controllers/DashboardController.php+++ b/app/Http/Controllers/DashboardController.php@@ -40,7 +40,7 @@ class DashboardController extends Controllerif ((! file_exists(storage_path().'/oauth-private.key')) || (! file_exists(storage_path().'/oauth-public.key'))) {Artisan::call('migrate', ['--force' => true]);- \Artisan::call('passport:install');+ Artisan::call('passport:install', ['--no-interaction' => true]);}return view('dashboard')->with('asset_stats', $asset_stats)->with('counts', $counts);diff --git a/upgrade.php b/upgrade.phpindex bd1678534b..9bd1e8ad15 100644--- a/upgrade.php+++ b/upgrade.php@@ -580,7 +580,7 @@ echo "--------------------------------------------------------\e[39m\n\n";if ((!file_exists('storage/oauth-public.key')) || (!file_exists('storage/oauth-private.key'))) {echo $info_icon." No OAuth keys detected. Running passport install now.\n\n";- $passport = shell_exec('php artisan passport:install');+ $passport = shell_exec('php artisan passport:install --no-interaction');echo $passport;} else {echo $success_icon." OAuth keys detected. Skipping passport install.\n\n";