Skip to content

Commit a81c520

Browse files
committed
Follow up for #16341
Signed-off-by: snipe <[email protected]>
1 parent 616f355 commit a81c520

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.github/workflows/tests-mysql.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
run: |
6868
php artisan key:generate
6969
php artisan migrate --force
70-
php artisan passport:install
70+
php artisan passport:install --no-interaction
7171
chmod -R 777 storage bootstrap/cache
7272
7373
- name: Execute tests (Unit and Feature tests) via PHPUnit

.github/workflows/tests-postgres.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
run: |
6666
php artisan key:generate
6767
php artisan migrate --force
68-
php artisan passport:install
68+
php artisan passport:install --no-interaction
6969
chmod -R 777 storage bootstrap/cache
7070
7171
- name: Execute tests (Unit and Feature tests) via PHPUnit

app/Http/Controllers/DashboardController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function index() : View | RedirectResponse
4040

4141
if ((! file_exists(storage_path().'/oauth-private.key')) || (! file_exists(storage_path().'/oauth-public.key'))) {
4242
Artisan::call('migrate', ['--force' => true]);
43-
\Artisan::call('passport:install');
43+
Artisan::call('passport:install', ['--no-interaction' => true]);
4444
}
4545

4646
return view('dashboard')->with('asset_stats', $asset_stats)->with('counts', $counts);

upgrade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ function url_get_contents ($Url) {
580580

581581
if ((!file_exists('storage/oauth-public.key')) || (!file_exists('storage/oauth-private.key'))) {
582582
echo $info_icon." No OAuth keys detected. Running passport install now.\n\n";
583-
$passport = shell_exec('php artisan passport:install');
583+
$passport = shell_exec('php artisan passport:install --no-interaction');
584584
echo $passport;
585585
} else {
586586
echo $success_icon." OAuth keys detected. Skipping passport install.\n\n";

0 commit comments

Comments
 (0)