diff --git a/web/app/Livewire/Installer.php b/web/app/Livewire/Installer.php index b122ee42..a64ef0ea 100644 --- a/web/app/Livewire/Installer.php +++ b/web/app/Livewire/Installer.php @@ -300,6 +300,9 @@ public function installLog() $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 @@ public function installLog() } } - public function install() - { - file_put_contents(storage_path('installed'), 'installed-'.date('Y-m-d H:i:s')); - - return redirect('/admin/login'); - } - }