Update install script to generate the app key

This commit is contained in:
DariusIII
2017-08-15 09:17:44 +02:00
parent 589fa17769
commit ac53cc2171
2 changed files with 5 additions and 2 deletions
+1
View File
@@ -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
+4 -2
View File
@@ -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();
}