From 0b9a2fdf3ad19942e85a66b94d08501ce9c927dd Mon Sep 17 00:00:00 2001 From: nee Date: Sun, 17 Dec 2017 17:52:24 +0100 Subject: [PATCH] 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) --- lib/installer.php | 3 +++ 1 file changed, 3 insertions(+) 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, -- 2.39.5