From ac53cc2171ad44ca204fe176b71897d9b0aa868b Mon Sep 17 00:00:00 2001 From: DariusIII Date: Tue, 15 Aug 2017 09:17:44 +0200 Subject: [PATCH] Update install script to generate the app key --- Changelog | 1 + _install/install_nntmux.php | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Changelog b/Changelog index 2b3451c14..ed4beb3fb 100755 --- a/Changelog +++ b/Changelog @@ -1,4 +1,5 @@ 2017-08-15 DariusIII + * Chg: Update install script to generate the app key * Chg: Update composer.json 2017-08-14 DariusIII * Chg: Update returned role value diff --git a/_install/install_nntmux.php b/_install/install_nntmux.php index 6f6c71130..4fa2885fb 100644 --- a/_install/install_nntmux.php +++ b/_install/install_nntmux.php @@ -152,7 +152,7 @@ if (env('ADMIN_USER') === '' || env('ADMIN_PASS') === '' || env('ADMIN_EMAIL') = } $capsule = new Capsule; -// Same as database configuration file of Laravel. + // Same as database configuration file of Laravel. $capsule->addConnection([ 'driver' => env('DB_SYSTEM'), 'host' => env('DB_HOST', '127.0.0.1'), @@ -164,7 +164,7 @@ if (env('ADMIN_USER') === '' || env('ADMIN_PASS') === '' || env('ADMIN_EMAIL') = 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'strict' => false - ], 'default'); + ]); $capsule->bootEloquent(); $user = new Users(); @@ -251,6 +251,8 @@ if (!$error) { if (!$error) { @file_put_contents(NN_ROOT . '_install/install.lock', ''); + ColorCLI::doEcho(ColorCLI::header('Generating application key')); + passthru('php ' . NN_ROOT . 'tmux key:generate'); ColorCLI::doEcho(ColorCLI::alternate('NNTmux installation completed successfully')); exit(); }