aboutsummaryrefslogtreecommitdiffstats
path: root/util/prosodyctl.lua
diff options
context:
space:
mode:
Diffstat (limited to 'util/prosodyctl.lua')
-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