Changeset

10389:dbb8dae58265 0.11

util.startup: Update config path (fixes #1430)
author Kim Alvefur <zash@zash.se>
date Sun, 03 Nov 2019 22:19:09 +0100
parents 10385:62a7042e0771
children 10390:82705ec87253
files util/startup.lua
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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