aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoão Duarte <jvsDuarte08@gmail.com>2019-07-31 10:22:11 -0700
committerJoão Duarte <jvsDuarte08@gmail.com>2019-07-31 10:22:11 -0700
commit2b8e9031a41af9046dc19c35e95f8cac0b4e67b1 (patch)
treef86d6e9f2bfb3f2b500d864affaae5614f064d74
parentf74f2d0d17b792139c85d44cbb4a64939bd2347e (diff)
downloadprosody-2b8e9031a41af9046dc19c35e95f8cac0b4e67b1.tar.gz
prosody-2b8e9031a41af9046dc19c35e95f8cac0b4e67b1.zip
util.prosodyctl: call_luarocks function is now compatible with the list command
-rw-r--r--util/prosodyctl.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/util/prosodyctl.lua b/util/prosodyctl.lua
index a98a89d7..7fe87dab 100644
--- a/util/prosodyctl.lua
+++ b/util/prosodyctl.lua
@@ -312,7 +312,11 @@ local function call_luarocks(operation, mod, dir)
elseif operation == "remove" then
show_message("Removing %s from %s", mod, dir);
end
- os.execute("luarocks --tree='"..dir.."' --server='http://localhost/' "..operation.." "..mod);
+ if operation == "list" then
+ os.execute("luarocks list --tree='"..dir.."'")
+ else
+ os.execute("luarocks --tree='"..dir.."' --server='http://localhost/' "..operation.." "..mod);
+ end
if operation == "install" then
show_module_configuration_help(mod);
end