aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-10-05 21:24:07 +0200
committerKim Alvefur <zash@zash.se>2020-10-05 21:24:07 +0200
commit28aadca557b90b2a3a981aecd4626b577c002346 (patch)
tree509f620e54a18a6fd2d943e98f17199c5b701494 /util
parentb74859e35c353452264b0f44704049932ae0e37a (diff)
downloadprosody-28aadca557b90b2a3a981aecd4626b577c002346.tar.gz
prosody-28aadca557b90b2a3a981aecd4626b577c002346.zip
util.prosodyctl: Move hardcoded luarocks server into prosodyctl
To be replaced with config option in future commit
Diffstat (limited to 'util')
-rw-r--r--util/prosodyctl.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/prosodyctl.lua b/util/prosodyctl.lua
index 28347455..b80ce46b 100644
--- a/util/prosodyctl.lua
+++ b/util/prosodyctl.lua
@@ -227,7 +227,7 @@ end
local render_cli = interpolation.new("%b{}", function (s) return "'"..s:gsub("'","'\\''").."'" end)
-local function call_luarocks(operation, mod)
+local function call_luarocks(operation, mod, server)
local dir = get_path_custom_plugins(prosody.paths.plugins);
if operation == "install" then
show_message("Installing %s at %s", mod, dir);
@@ -238,7 +238,7 @@ local function call_luarocks(operation, mod)
os.execute(render_cli("luarocks list --tree={dir}", {dir = dir}));
else
os.execute(render_cli("luarocks {op} --tree={dir} {server&--server={server}} {mod}", {
- dir = dir; op = operation; mod = mod; server = "http://localhost/";
+ dir = dir; op = operation; mod = mod; server = server;
}));
end
if operation == "install" then