diff options
author | Kim Alvefur <zash@zash.se> | 2019-11-03 22:19:09 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-11-03 22:19:09 +0100 |
commit | 64b86ad50602aae90cee6bf0de5647f5e90287b2 (patch) | |
tree | a7a3ede7361f40e9950a35d77f633b446ff8e82a | |
parent | ae75d537f6a9f175f2ded30e0866aa2c092872f0 (diff) | |
download | prosody-64b86ad50602aae90cee6bf0de5647f5e90287b2.tar.gz prosody-64b86ad50602aae90cee6bf0de5647f5e90287b2.zip |
util.startup: Update config path (fixes #1430)
-rw-r--r-- | util/startup.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/startup.lua b/util/startup.lua index c101c290..82d0804d 100644 --- a/util/startup.lua +++ b/util/startup.lua @@ -33,7 +33,8 @@ function startup.read_config() 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 |