diff options
author | ChrisTX <xpipe@hotmail.de> | 2012-09-23 12:30:30 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2012-10-04 15:14:04 +0200 |
commit | c2f7fc047c2e5bbb899c820590ce07fee593b28f (patch) | |
tree | dca97896004c71a484d6dd189e78e40732a5f041 /src/helperfuncs.cpp | |
parent | 6f5414e1bf63228471e078f29a5889f44e598a8c (diff) |
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.
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r-- | src/helperfuncs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) |