prosodyctl check: Point out that authentication and storage modules should not be...
authorKim Alvefur <zash@zash.se>
Thu, 3 Dec 2015 15:17:19 +0000 (16:17 +0100)
committerKim Alvefur <zash@zash.se>
Thu, 3 Dec 2015 15:17:19 +0000 (16:17 +0100)
prosodyctl

index 4826b83da3c492e0bfe392f1e04f25ba2802ebf5..e4ef45ad2a1f7f00d88488ddcb75d31689e248d5 100755 (executable)
@@ -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";