allow the cmd installer to load the config file from '/etc/gnusocial/config.d/'.$_server.'.php'

using the commandline argument as $_server (passed through lib/common.php to lib/gnusocial.php)
This commit is contained in:
nee 2017-12-17 17:52:24 +01:00
parent fdd3d63098
commit 0b9a2fdf3a
1 changed files with 3 additions and 0 deletions

View File

@ -517,6 +517,9 @@ abstract class Installer
*/
function registerInitialUser()
{
// initalize hostname from install arguments, so it can be used to find
// the /etc config file from the commandline installer
$server = $this->server;
require_once INSTALLDIR . '/lib/common.php';
$data = array('nickname' => $this->adminNick,