]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Tell which modules will be enabled if Rejdis is added
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 3 Dec 2017 16:54:46 +0000 (16:54 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 3 Dec 2017 16:55:30 +0000 (16:55 +0000)
lualib/rspamadm/configwizard.lua
lualib/rspamadm/plugins_stats.lua

index 40546e32f28ca258a7e7d36950804c87ae8bd765..06e688c07e39e89f57c3b37d48e986d12e3d32e6 100644 (file)
@@ -142,9 +142,14 @@ local function setup_redis(cfg, changes)
     return ls
   end
 
-  printf("Setup %s for storage:", highlight("Redis"))
+  printf("%s servers are not set:", highlight("Redis"))
+  printf("The following modules will be enabled if you add Redis servers:")
 
-  if ask_yes_no("Redis servers are not set, do you wish to set them?", true) then
+  for k,_ in pairs(rspamd_plugins_state.disabled_redis) do
+    printf("\t* %s", highlight(k))
+  end
+
+  if ask_yes_no("Do you wish to set Redis servers?", true) then
     local read_servers = rspamd_util.readline("Input read only servers separated by `,` [default: localhost]: ")
 
     if not read_servers or #read_servers == 0 then
index 465396a2aa308ca59eb4fb4ae51d448105d80716..de4aec2c8e20845c3c62300ff44016e0072c01c7 100644 (file)
@@ -35,6 +35,8 @@ end
 
 return function(args, _)
   print_plugins_table(rspamd_plugins_state.enabled, "enabled")
+  print_plugins_table(rspamd_plugins_state.disabled_explicitly,
+    "disabled (explicitly)")
   print_plugins_table(rspamd_plugins_state.disabled_unconfigured,
     "disabled (unconfigured)")
   print_plugins_table(rspamd_plugins_state.disabled_redis,