Fix install.lock file generation on install

This commit is contained in:
DariusIII
2018-04-19 10:38:24 +02:00
parent 4a1bbf209c
commit f87bb91394
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -1,4 +1,5 @@
2018-04-19 DariusIII
* Fix: Fix install.lock file generation on install
* Chg: Add option to .env.example to decide if session should be encrypted or not
2018-04-18 DariusIII
* Chg: Add ShowsController
+2 -1
View File
@@ -6,6 +6,7 @@ use App\Models\User;
use App\Models\Settings;
use Illuminate\Console\Command;
use App\Extensions\util\Versions;
use Illuminate\Support\Carbon;
use Symfony\Component\Process\Process;
class InstallNntmux extends Command
@@ -122,7 +123,7 @@ class InstallNntmux extends Command
}
if (! $error && $this->addAdminUser()) {
@file_put_contents(base_path().'_install/install.lock', '');
@file_put_contents(base_path().'/_install/install.lock', 'application install locked on ' . Carbon::now());
$this->info('Generating application key');
$process = new Process('php artisan key:generate --force');
$process->setTimeout(600);