aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2022-03-28 11:41:57 +0100
committerMatthew Wild <mwild1@gmail.com>2022-03-28 11:41:57 +0100
commitfdd5f22b8ac4960bed70380c018ed08f6702a71e (patch)
treed0b4675f5e50ab4f87a24ffdabaccd43f638405f
parenta52c531dc50e00640070d61cf016b9ff031bed5d (diff)
downloadprosody-fdd5f22b8ac4960bed70380c018ed08f6702a71e.tar.gz
prosody-fdd5f22b8ac4960bed70380c018ed08f6702a71e.zip
prosodyctl: check config: Report paths of loaded configuration files (fixed #1729)
-rw-r--r--util/prosodyctl/check.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/util/prosodyctl/check.lua b/util/prosodyctl/check.lua
index e6b815f2..4b09ad8d 100644
--- a/util/prosodyctl/check.lua
+++ b/util/prosodyctl/check.lua
@@ -332,6 +332,13 @@ local function check(arg)
end
if not what or what == "config" then
print("Checking config...");
+
+ if what == "config" then
+ local files = configmanager.files();
+ print(" The following configuration files have been loaded:");
+ print(" - "..table.concat(files, "\n - "));
+ end
+
local obsolete = set.new({ --> remove
"archive_cleanup_interval",
"cross_domain_bosh",