diff options
author | Kim Alvefur <zash@zash.se> | 2018-06-28 11:05:00 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-06-28 11:05:00 +0200 |
commit | 6d7e7a81e26b6afbef5ac177ba30713528e55450 (patch) | |
tree | 871fd3b7bb7eecfd6059a1d2567ca8faff040c8a /prosodyctl | |
parent | d591424f1d7c5a7ddadaad00dea1703bc339ecfc (diff) | |
parent | fdc0d5f9b40a050fd66dab32774af6f8456292aa (diff) | |
download | prosody-6d7e7a81e26b6afbef5ac177ba30713528e55450.tar.gz prosody-6d7e7a81e26b6afbef5ac177ba30713528e55450.zip |
Merge 0.10->trunk
Diffstat (limited to 'prosodyctl')
-rwxr-xr-x | prosodyctl | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -779,6 +779,10 @@ function commands.check(arg) local ok = true; local function disabled_hosts(host, conf) return host ~= "*" and conf.enabled ~= false; end local function enabled_hosts() return it.filter(disabled_hosts, pairs(configmanager.getconfig())); end + if not (what == nil or what == "disabled" or what == "config" or what == "dns" or what == "certs") then + show_warning("Don't know how to check '%s'. Try one of 'config', 'dns', 'certs' or 'disabled'.", what); + return 1; + end if not what or what == "disabled" then local disabled_hosts_set = set.new(); for host, host_options in it.filter("*", pairs(configmanager.getconfig())) do |