Software /
code /
prosody
Comparison
util/prosodyctl/check.lua @ 11303:0d932bf3a0f7
util.prosodyctl.check: Recognise global options related to plugin installer
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 21 Jan 2021 23:38:44 +0100 |
parent | 10971:3cdb4a7cb406 |
child | 11560:3bbb1af92514 |
comparison
equal
deleted
inserted
replaced
11302:6bb2986783d0 | 11303:0d932bf3a0f7 |
---|---|
45 local known_global_options = set.new({ | 45 local known_global_options = set.new({ |
46 "pidfile", "log", "plugin_paths", "prosody_user", "prosody_group", "daemonize", | 46 "pidfile", "log", "plugin_paths", "prosody_user", "prosody_group", "daemonize", |
47 "umask", "prosodyctl_timeout", "use_ipv6", "use_libevent", "network_settings", | 47 "umask", "prosodyctl_timeout", "use_ipv6", "use_libevent", "network_settings", |
48 "network_backend", "http_default_host", | 48 "network_backend", "http_default_host", |
49 "statistics_interval", "statistics", "statistics_config", | 49 "statistics_interval", "statistics", "statistics_config", |
50 "plugin_server", "installer_plugin_path", | |
50 }); | 51 }); |
51 local config = configmanager.getconfig(); | 52 local config = configmanager.getconfig(); |
52 -- Check that we have any global options (caused by putting a host at the top) | 53 -- Check that we have any global options (caused by putting a host at the top) |
53 if it.count(it.filter("log", pairs(config["*"]))) == 0 then | 54 if it.count(it.filter("log", pairs(config["*"]))) == 0 then |
54 ok = false; | 55 ok = false; |