mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 05:07:42 +03:00
prosodyctl: Allow passing server on command line with --server
Because why not I guess. This mirrors the corresponding luarocks command
This commit is contained in:
parent
3e66b4e091
commit
cf575b27fe
1 changed files with 1 additions and 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue