diff options
author | Kim Alvefur <zash@zash.se> | 2022-02-04 19:04:32 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2022-02-04 19:04:32 +0100 |
commit | cf575b27fe9b71cde258cd473f448eb49ede910f (patch) | |
tree | 31805314c9d70408ef29f48ebfe301a6b734f384 | |
parent | 3e66b4e0911f227d7ff044b73d32d623b24ec130 (diff) | |
download | prosody-cf575b27fe9b71cde258cd473f448eb49ede910f.tar.gz prosody-cf575b27fe9b71cde258cd473f448eb49ede910f.zip |
prosodyctl: Allow passing server on command line with --server
Because why not I guess. This mirrors the corresponding luarocks command
-rwxr-xr-x | prosodyctl | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -83,7 +83,7 @@ function commands.install(arg) return opts.help and 0 or 1; end -- TODO finalize config option name - local server = configmanager.get("*", "plugin_server"); + local server = opts.server or configmanager.get("*", "plugin_server"); if not (arg[1]:match("^https://") or lfs.attributes(arg[1]) or server) then show_warning("There is no 'plugin_server' option in the configuration file"); -- see https://prosody.im/doc/TODO documentation |