summaryrefslogtreecommitdiff
path: root/src/helperfuncs.cpp
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-10-13 01:44:22 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-10-13 01:44:22 +0000
commitd1ddbd62f91d4b9453447b5d25f5e41e807b0010 (patch)
tree89ee0a02bab93e38f35195d236e13f3e22906932 /src/helperfuncs.cpp
parent547e7e9b382255b1699ff897f40fb4ed659c3360 (diff)
Change to new execution directory structure
Don't change CWD into bin/ Remove path-resolution hacks from configuration Store pidfile and xline DBs in data, logs in logs. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11866 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r--src/helperfuncs.cpp16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index 6c2ceabb2..cd173b55f 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -281,20 +281,6 @@ bool InspIRCd::OpenLog(char**, int)
{
this->Logs->SetupNoFork();
}
- Config->MyDir = Config->GetFullProgDir();
-
- /* Attempt to find home directory, portable to windows */
- const char* home = getenv("HOME");
- if (!home)
- {
- /* No $HOME, log to %USERPROFILE% */
- home = getenv("USERPROFILE");
- if (!home)
- {
- /* Nothing could be found at all, log to current dir */
- Config->logpath = "./startup.log";
- }
- }
if (!Config->writelog) return true; // Skip opening default log if -nolog
@@ -302,7 +288,7 @@ bool InspIRCd::OpenLog(char**, int)
{
if (Config->logpath.empty())
{
- Config->logpath = "./startup.log";
+ Config->logpath = "logs/startup.log";
}
if (!Config->log_file)