Update Installer.php

This commit is contained in:
Bozhidar 2024-05-09 17:56:50 +03:00
parent bb0945a63f
commit 8897c4818c

View file

@ -300,6 +300,9 @@ class Installer extends Page
$this->install_log = nl2br($this->install_log);
if (strpos($this->install_log, 'DONE!') !== false) {
file_put_contents(storage_path('installed'), 'installed-'.date('Y-m-d H:i:s'));
return redirect('/admin/login');
}
@ -308,11 +311,4 @@ class Installer extends Page
}
}
public function install()
{
file_put_contents(storage_path('installed'), 'installed-'.date('Y-m-d H:i:s'));
return redirect('/admin/login');
}
}