Skip to content

Commit

Permalink
Add missing stuff to cli install
Browse files Browse the repository at this point in the history
  • Loading branch information
tadhgboyle committed Dec 1, 2021
1 parent 53d915a commit e8cd4ed
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
12 changes: 10 additions & 2 deletions cli_install.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
$queries = new Queries();
$queries->dbInitialise();

Session::put('default_language', $vars['language']);
Session::put('default_language', $vars['core']['language']);

$nameless_terms = 'This website uses "Nameless" website software. The ' .
'"Nameless" software creators will not be held responsible for any content ' .
Expand All @@ -120,7 +120,15 @@
require './core/installation/views/includes/site_initialize.php';
$queries->create('settings', [
'name' => 'sitename',
'value' => Output::getClean($vars['sitename']),
'value' => Output::getClean($vars['core']['sitename']),
]);
$queries->create('settings', [
'name' => 'incoming_email',
'value' => Output::getClean($vars['core']['incoming_email']),
]);
$queries->create('settings', [
'name' => 'outgoing_email',
'value' => Output::getClean($vars['core']['outgoing_email']),
]);

print('✍️ Creating admin account...' . PHP_EOL);
Expand Down
6 changes: 4 additions & 2 deletions cli_install_vars.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@
'hostname' => 'localhost',
'path' => '',
'friendly' => 'false',
'language' => 'EnglishUK',
'sitename' => 'NamelessMC',
'incoming_email' => '',
'outgoing_email' => '',
],
'admin_account' => [
'username' => 'admin',
'password' => '123456',
'email' => 'contact@example.com',
'uuid' => 'none',
],
'language' => 'EnglishUK',
'sitename' => 'NamelessMC',
];

0 comments on commit e8cd4ed

Please sign in to comment.