From: nee Date: Sun, 17 Dec 2017 16:52:24 +0000 (+0100) Subject: allow the cmd installer to load the config file from '/etc/gnusocial/config.d/'.... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0b9a2fdf3ad19942e85a66b94d08501ce9c927dd;p=quix0rs-gnu-social.git 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) --- diff --git a/lib/installer.php b/lib/installer.php index e73216f18d..5f44812b23 100644 --- a/lib/installer.php +++ b/lib/installer.php @@ -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,