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
commit6ae5f04781c82e8064ceb9acc91ab9cfdb295969 (patch)
treed7e628bc6b1e97e4227b341f8da3bcb647a99cb4
parentd323072816a3060dc0d77f7e58a3ebc3c2f90ff5 (diff)
downloadprosody-6ae5f04781c82e8064ceb9acc91ab9cfdb295969.tar.gz
prosody-6ae5f04781c82e8064ceb9acc91ab9cfdb295969.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