Software /
code /
prosody
Changeset
10183:5eba710e33f9
util.prosodyctl: Function now differentiates its output, depending if it is being called by install or remove
author | João Duarte <jvsDuarte08@gmail.com> |
---|---|
date | Wed, 31 Jul 2019 10:02:42 -0700 |
parents | 10182:bb7d537e6fba |
children | 10184:5655cd9fc8e9 |
files | util/prosodyctl.lua |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/util/prosodyctl.lua Wed Jul 31 07:31:03 2019 -0700 +++ b/util/prosodyctl.lua Wed Jul 31 10:02:42 2019 -0700 @@ -307,9 +307,15 @@ end local function call_luarocks(operation, mod, dir) + if operation == "install" then show_message("Installing %s at %s", mod, dir); - os.execute("luarocks --tree='"..dir.."' --server='http://localhost/' "..operation.." "..mod); + 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 == "install" then show_module_configuration_help(mod); + end end return {