Follow up for #16341

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2025-02-26 20:15:09 +00:00
parent 616f3558dd
commit a81c520d93
4 changed files with 4 additions and 4 deletions

View file

@ -67,7 +67,7 @@ jobs:
run: | run: |
php artisan key:generate php artisan key:generate
php artisan migrate --force php artisan migrate --force
php artisan passport:install php artisan passport:install --no-interaction
chmod -R 777 storage bootstrap/cache chmod -R 777 storage bootstrap/cache
- name: Execute tests (Unit and Feature tests) via PHPUnit - name: Execute tests (Unit and Feature tests) via PHPUnit

View file

@ -65,7 +65,7 @@ jobs:
run: | run: |
php artisan key:generate php artisan key:generate
php artisan migrate --force php artisan migrate --force
php artisan passport:install php artisan passport:install --no-interaction
chmod -R 777 storage bootstrap/cache chmod -R 777 storage bootstrap/cache
- name: Execute tests (Unit and Feature tests) via PHPUnit - name: Execute tests (Unit and Feature tests) via PHPUnit

View file

@ -40,7 +40,7 @@ class DashboardController extends Controller
if ((! file_exists(storage_path().'/oauth-private.key')) || (! file_exists(storage_path().'/oauth-public.key'))) { if ((! file_exists(storage_path().'/oauth-private.key')) || (! file_exists(storage_path().'/oauth-public.key'))) {
Artisan::call('migrate', ['--force' => true]); 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); return view('dashboard')->with('asset_stats', $asset_stats)->with('counts', $counts);

View file

@ -580,7 +580,7 @@ echo "--------------------------------------------------------\e[39m\n\n";
if ((!file_exists('storage/oauth-public.key')) || (!file_exists('storage/oauth-private.key'))) { 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"; 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; echo $passport;
} else { } else {
echo $success_icon." OAuth keys detected. Skipping passport install.\n\n"; echo $success_icon." OAuth keys detected. Skipping passport install.\n\n";