util/startup.lua
branch0.11
changeset 10393 dbb8dae58265
parent 9766 34988a408b74
child 10394 82705ec87253
--- a/util/startup.lua	Sat Nov 02 19:36:19 2019 +0100
+++ b/util/startup.lua	Sun Nov 03 22:19:09 2019 +0100
@@ -33,7 +33,8 @@
 		if file then
 			file:close();
 			prosody.config_file = filename;
-			CFG_CONFIGDIR = filename:match("^(.*)[\\/][^\\/]*$"); -- luacheck: ignore 111
+			prosody.paths.config = filename:match("^(.*)[\\/][^\\/]*$");
+			CFG_CONFIGDIR = prosody.paths.config; -- luacheck: ignore 111
 			break;
 		end
 	end