]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
allow the cmd installer to load the config file from '/etc/gnusocial/config.d/'....
authornee <nee.git@cock.li>
Sun, 17 Dec 2017 16:52:24 +0000 (17:52 +0100)
committernee <nee.git@cock.li>
Sun, 17 Dec 2017 16:59:46 +0000 (17:59 +0100)
using the commandline argument as $_server (passed through lib/common.php to lib/gnusocial.php)

lib/installer.php

index e73216f18d42b3ebc1b62d816e1f5b507dc0dd6c..5f44812b235701642ce69f755070d25dab07bcb1 100644 (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,