aboutsummaryrefslogtreecommitdiffstats
path: root/prosodyctl
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-12-03 16:17:19 +0100
committerKim Alvefur <zash@zash.se>2015-12-03 16:17:19 +0100
commit8f79ce503a88b53d11a8d1db9a1a25a6d6969a7c (patch)
tree4e2640d763fb20d91e7a57d8434bff353ec0cb88 /prosodyctl
parent8b1307505620b3083a8efaf3f7ead3f174e5f539 (diff)
downloadprosody-8f79ce503a88b53d11a8d1db9a1a25a6d6969a7c.tar.gz
prosody-8f79ce503a88b53d11a8d1db9a1a25a6d6969a7c.zip
prosodyctl check: Point out that authentication and storage modules should not be added to modules_enabled (fixes #570)
Diffstat (limited to 'prosodyctl')
-rwxr-xr-xprosodyctl14
1 files changed, 14 insertions, 0 deletions
diff --git a/prosodyctl b/prosodyctl
index 4826b83d..e4ef45ad 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -924,6 +924,20 @@ function commands.check(arg)
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";