From d1ddbd62f91d4b9453447b5d25f5e41e807b0010 Mon Sep 17 00:00:00 2001 From: danieldg Date: Tue, 13 Oct 2009 01:44:22 +0000 Subject: 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 --- src/helperfuncs.cpp | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'src/helperfuncs.cpp') 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) -- cgit v1.3.1-10-gc9f91