diff options
author | João Duarte <jvsDuarte08@gmail.com> | 2019-07-31 10:22:11 -0700 |
---|---|---|
committer | João Duarte <jvsDuarte08@gmail.com> | 2019-07-31 10:22:11 -0700 |
commit | 2b8e9031a41af9046dc19c35e95f8cac0b4e67b1 (patch) | |
tree | f86d6e9f2bfb3f2b500d864affaae5614f064d74 /util/prosodyctl.lua | |
parent | f74f2d0d17b792139c85d44cbb4a64939bd2347e (diff) | |
download | prosody-2b8e9031a41af9046dc19c35e95f8cac0b4e67b1.tar.gz prosody-2b8e9031a41af9046dc19c35e95f8cac0b4e67b1.zip |
util.prosodyctl: call_luarocks function is now compatible with the list command
Diffstat (limited to 'util/prosodyctl.lua')
-rw-r--r-- | util/prosodyctl.lua | 6 |
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 |