3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-02-05 13:35:30 +00:00

Possible fix for #3852

This commit is contained in:
snipe
2017-08-22 22:46:02 -07:00
parent 57f4c986af
commit f119c69698

View File

@ -259,6 +259,13 @@ class SettingsController extends Controller
Artisan::call('migrate', ['--force' => true]);
$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')
->with('output', $output)
->with('step', 2)