Comparison

prosodyctl @ 6960:50e2277ea05f

prosodyctl check: Point out that authentication and storage modules should not be added to modules_enabled (fixes #570)
author Kim Alvefur <zash@zash.se>
date Thu, 03 Dec 2015 16:17:19 +0100
parent 6959:aa8647a5105d
child 7065:4fc3c008976f
comparison
equal deleted inserted replaced
6959:aa8647a5105d 6960:50e2277ea05f
922 for mod in all_modules do 922 for mod in all_modules do
923 if mod:match("^mod_") then 923 if mod:match("^mod_") then
924 print(""); 924 print("");
925 print(" Modules in modules_enabled should not have the 'mod_' prefix included."); 925 print(" Modules in modules_enabled should not have the 'mod_' prefix included.");
926 print(" Change '"..mod.."' to '"..mod:match("^mod_(.*)").."'."); 926 print(" Change '"..mod.."' to '"..mod:match("^mod_(.*)").."'.");
927 elseif mod:match("^auth_") then
928 print("");
929 print(" Authentication modules should not be added to modules_enabled,");
930 print(" but be specified in the 'authentication' option.");
931 print(" Remove '"..mod.."' from modules_enabled and instead add");
932 print(" authentication = '"..mod:match("^auth_(.*)").."'");
933 print(" For more information see https://prosody.im/doc/authentication");
934 elseif mod:match("^storage_") then
935 print("");
936 print(" storage modules should not be added to modules_enabled,");
937 print(" but be specified in the 'storage' option.");
938 print(" Remove '"..mod.."' from modules_enabled and instead add");
939 print(" storage = '"..mod:match("^storage_(.*)").."'");
940 print(" For more information see https://prosody.im/doc/storage");
927 end 941 end
928 end 942 end
929 local ssl = dependencies.softreq"ssl"; 943 local ssl = dependencies.softreq"ssl";
930 if not ssl then 944 if not ssl then
931 if not set.intersection(all_options, set.new({"require_encryption", "c2s_require_encryption", "s2s_require_encryption"})):empty() then 945 if not set.intersection(all_options, set.new({"require_encryption", "c2s_require_encryption", "s2s_require_encryption"})):empty() then