aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xprosodyctl6
-rw-r--r--util/prosodyctl.lua2
2 files changed, 4 insertions, 4 deletions
diff --git a/prosodyctl b/prosodyctl
index dcd9e5a2..928d2bec 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -78,7 +78,7 @@ function commands.install(arg)
show_usage([[install]], [[Installs a prosody/luarocks plugin]]);
return 1;
end
- call_luarocks(arg[1], "install")
+ call_luarocks("install", arg[1]);
end
function commands.remove(arg)
@@ -86,7 +86,7 @@ function commands.remove(arg)
show_usage([[remove]], [[Removes a module installed in the working directory's plugins folder]]);
return 1;
end
- call_luarocks(arg[1], "remove")
+ call_luarocks("remove", arg[1])
end
function commands.list(arg)
@@ -94,7 +94,7 @@ function commands.list(arg)
show_usage([[list]], [[Shows installed rocks]]);
return 1;
end
- call_luarocks(arg[1], "list")
+ call_luarocks("list", arg[1])
end
function commands.adduser(arg)
diff --git a/util/prosodyctl.lua b/util/prosodyctl.lua
index 6378856a..28347455 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(mod, operation)
+local function call_luarocks(operation, mod)
local dir = get_path_custom_plugins(prosody.paths.plugins);
if operation == "install" then
show_message("Installing %s at %s", mod, dir);