mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Fix install.lock file generation on install
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user