Software /
code /
prosody
Diff
util/startup.lua @ 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 |
parent | 9762:34988a408b74 |
child | 10390:82705ec87253 |
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