aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-12-03 16:46:24 +0100
committerKim Alvefur <zash@zash.se>2015-12-03 16:46:24 +0100
commitde08c46b98679ccab99e06bb9150a40984f2cf4e (patch)
tree24b3177a253fc71677e3a963dea3c9eea70c791d
parentfdab550f02884d68c2de04de4c5b7ed14f19c312 (diff)
parentbb3f6eaf3ac9af77283e79ac3bba96c35221b911 (diff)
downloadprosody-de08c46b98679ccab99e06bb9150a40984f2cf4e.tar.gz
prosody-de08c46b98679ccab99e06bb9150a40984f2cf4e.zip
Merge...
-rwxr-xr-xprosodyctl27
1 files changed, 25 insertions, 2 deletions
diff --git a/prosodyctl b/prosodyctl
index 76c05fa6..e4ef45ad 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -913,11 +913,34 @@ function commands.check(arg)
print(" For more information see: http://prosody.im/doc/dns");
end
end
- local all_options = set.new();
+ local all_modules = set.new(config["*"].modules_enabled);
+ local all_options = set.new(it.to_array(it.keys(config["*"])));
for host in enabled_hosts() do
all_options:include(set.new(it.to_array(it.keys(config[host]))));
+ all_modules:include(set.new(config[host].modules_enabled));
end
- local ssl = nil, dependencies.softreq"ssl";
+ for mod in all_modules do
+ if mod:match("^mod_") then
+ print("");
+ print(" Modules in modules_enabled should not have the 'mod_' prefix included.");
+ print(" Change '"..mod.."' to '"..mod:match("^mod_(.*)").."'.");
+ elseif mod:match("^auth_") then
+ print("");
+ print(" Authentication modules should not be added to modules_enabled,");
+ print(" but be specified in the 'authentication' option.");
+ print(" Remove '"..mod.."' from modules_enabled and instead add");
+ print(" authentication = '"..mod:match("^auth_(.*)").."'");
+ print(" For more information see https://prosody.im/doc/authentication");
+ elseif mod:match("^storage_") then
+ print("");
+ print(" storage modules should not be added to modules_enabled,");
+ print(" but be specified in the 'storage' option.");
+ print(" Remove '"..mod.."' from modules_enabled and instead add");
+ print(" storage = '"..mod:match("^storage_(.*)").."'");
+ print(" For more information see https://prosody.im/doc/storage");
+ end
+ end
+ local ssl = dependencies.softreq"ssl";
if not ssl then
if not set.intersection(all_options, set.new({"require_encryption", "c2s_require_encryption", "s2s_require_encryption"})):empty() then
print("");