Strip FIRST_RUN if database ok
This commit is contained in:
parent
bf364c5f5f
commit
d06e17dfdc
|
|
@ -21,6 +21,11 @@ class SetupController extends Controller
|
|||
if ($request->isMethod('get')) {
|
||||
try {
|
||||
DB::getPdo();
|
||||
|
||||
$content = File::get('..'.DIRECTORY_SEPARATOR.'.env');
|
||||
$content = str_replace('FIRST_RUN = true', '', $content);
|
||||
File::put('..'.DIRECTORY_SEPARATOR.'.env', $content);
|
||||
|
||||
return redirect('setup/info');
|
||||
} catch (\Exception $e) {
|
||||
return view('setup.wizard.database');
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user