mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Possible fix for #3852
This commit is contained in:
parent
57f4c986af
commit
f119c69698
|
@ -259,6 +259,13 @@ class SettingsController extends Controller
|
||||||
Artisan::call('migrate', ['--force' => true]);
|
Artisan::call('migrate', ['--force' => true]);
|
||||||
|
|
||||||
$output = Artisan::output();
|
$output = Artisan::output();
|
||||||
|
|
||||||
|
if ((!file_exists(storage_path().'/oauth-private.key')) || (!file_exists(storage_path().'/oauth-public.key'))) {
|
||||||
|
Artisan::call('passport:install');
|
||||||
|
Artisan::call('migrate', ['--force' => true]);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
return view('setup/migrate')
|
return view('setup/migrate')
|
||||||
->with('output', $output)
|
->with('output', $output)
|
||||||
->with('step', 2)
|
->with('step', 2)
|
||||||
|
|
Loading…
Reference in a new issue