aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJo?o Duarte <jvsDuarte08@gmail.com>2019-08-16 15:03:50 -0700
committerJo?o Duarte <jvsDuarte08@gmail.com>2019-08-16 15:03:50 -0700
commit8a6819c5643736a0fc7d4c45f496ad958796d36e (patch)
treed7e628bc6b1e97e4227b341f8da3bcb647a99cb4
parent2e5522674ec344d9f240f656ed907ad7801185ee (diff)
downloadprosody-8a6819c5643736a0fc7d4c45f496ad958796d36e.tar.gz
prosody-8a6819c5643736a0fc7d4c45f496ad958796d36e.zip
util/prosodyctl: call_luarocks now sets a directory variable itself
-rw-r--r--util/prosodyctl.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/prosodyctl.lua b/util/prosodyctl.lua
index 316831a9..163658f3 100644
--- a/util/prosodyctl.lua
+++ b/util/prosodyctl.lua
@@ -296,7 +296,8 @@ local function get_path_custom_plugins(plugin_paths)
end
end
-local function call_luarocks(operation, mod, dir)
+local function call_luarocks(mod, operation)
+ local dir = get_path_custom_plugins(prosody.paths.plugins);
if operation == "install" then
show_message("Installing %s at %s", mod, dir);
elseif operation == "remove" then