util.startup: Update config path (fixes #1430) 0.11
authorKim Alvefur <zash@zash.se>
Sun, 03 Nov 2019 22:19:09 +0100
branch0.11
changeset 10393 dbb8dae58265
parent 10389 62a7042e0771
child 10394 82705ec87253
util.startup: Update config path (fixes #1430)
util/startup.lua
--- 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