From c2f7fc047c2e5bbb899c820590ce07fee593b28f Mon Sep 17 00:00:00 2001 From: ChrisTX Date: Sun, 23 Sep 2012 12:30:30 +0200 Subject: Replace hardcoded paths with configurable ones This patchset aims to ease the packaging of InspIRCd for a system-wide installation scenario. Changes in detail: configure: Add the options --log-path and --data-path m_ssl_gnutls, openssl: Change the hardcoded "conf/" to the existent CONFIG_PATH macro m_xline_db: Make the location of xline.db configurable. It will use --data-path as default value, but this can be changed using the configuration files. --- src/helperfuncs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/helperfuncs.cpp') diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index edb5005d2..4605092a1 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -293,7 +293,7 @@ bool InspIRCd::OpenLog(char**, int) if (!Config->cmdline.writelog) return true; // Skip opening default log if -nolog if (Config->cmdline.startup_log.empty()) - Config->cmdline.startup_log = "logs/startup.log"; + Config->cmdline.startup_log = LOG_PATH "/startup.log"; FILE* startup = fopen(Config->cmdline.startup_log.c_str(), "a+"); if (!startup) -- cgit v1.2.3