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 | 46f373b49bdec7e65ed48e54dc92dabc11d9ec17 (patch) | |
tree | f86d6e9f2bfb3f2b500d864affaae5614f064d74 /util | |
parent | 4c33b461d6d7600f3d7a133c6a1f5c96931bf339 (diff) | |
download | prosody-46f373b49bdec7e65ed48e54dc92dabc11d9ec17.tar.gz prosody-46f373b49bdec7e65ed48e54dc92dabc11d9ec17.zip |
util.prosodyctl: call_luarocks function is now compatible with the list command
Diffstat (limited to 'util')
-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 |