mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2025-01-24 14:04:07 +08:00
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