diff options
author | Kim Alvefur <zash@zash.se> | 2015-12-03 16:17:19 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2015-12-03 16:17:19 +0100 |
commit | b810e6f3e14ac89c4f7d4477196a81740eb9a2a3 (patch) | |
tree | 4e2640d763fb20d91e7a57d8434bff353ec0cb88 | |
parent | 1fde24fe2cbb35a48ae2ec1701f8721470cc5938 (diff) | |
download | prosody-b810e6f3e14ac89c4f7d4477196a81740eb9a2a3.tar.gz prosody-b810e6f3e14ac89c4f7d4477196a81740eb9a2a3.zip |
prosodyctl check: Point out that authentication and storage modules should not be added to modules_enabled (fixes #570)
-rwxr-xr-x | prosodyctl | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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"; |