1
0
mirror of https://github.com/anope/anope.git synced 2026-06-24 11:16:39 +02:00

Place runtime module binaries in data/runtime instead of lib/ incase of a system wide install where lib/ is not writable

This commit is contained in:
Adam
2012-09-30 18:59:14 -04:00
parent 0ea5e57298
commit 56df1abdd8
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -23,7 +23,7 @@ std::vector<Module *> ModuleManager::EventHandlers[I_END];
void ModuleManager::CleanupRuntimeDirectory()
{
Anope::string dirbuf = modules_dir + "/modules/runtime";
Anope::string dirbuf = db_dir + "/runtime";
Log(LOG_DEBUG) << "Cleaning out Module run time directory (" << dirbuf << ") - this may take a moment please wait";
@@ -135,7 +135,7 @@ ModuleReturn ModuleManager::LoadModule(const Anope::string &modname, User *u)
Log(LOG_DEBUG) << "trying to load [" << modname << "]";
/* Generate the filename for the temporary copy of the module */
Anope::string pbuf = modules_dir + "/modules/runtime/" + modname + ".so.XXXXXX";
Anope::string pbuf = db_dir + "/runtime/" + modname + ".so.XXXXXX";
/* Don't skip return value checking! -GD */
ModuleReturn ret = moduleCopyFile(modname, pbuf);