aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-10-05 21:24:14 +0200
committerKim Alvefur <zash@zash.se>2020-10-05 21:24:14 +0200
commit42eec522a3a327185ee358ac77cf894e93c221e8 (patch)
treeef5cb4ec1fb70a691a0809df571d554cd5fa957b
parent28aadca557b90b2a3a981aecd4626b577c002346 (diff)
downloadprosody-42eec522a3a327185ee358ac77cf894e93c221e8.tar.gz
prosody-42eec522a3a327185ee358ac77cf894e93c221e8.zip
util.prosodyctl: Get Luarocks server from config
-rwxr-xr-xprosodyctl3
1 files changed, 2 insertions, 1 deletions
diff --git a/prosodyctl b/prosodyctl
index ca631047..c74a04d1 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -78,7 +78,8 @@ function commands.install(arg)
show_usage([[install]], [[Installs a prosody/luarocks plugin]]);
return 1;
end
- call_luarocks("install", arg[1], "http://localhost/");
+ -- TODO finalize config option name
+ call_luarocks("install", arg[1], configmanager.get("*", "plugin_server") or "http://localhost/");
end
function commands.remove(arg)