Software /
code /
prosody
Diff
util/prosodyctl.lua @ 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 |
parent | 10181:c7d5cd766533 |
child | 10185:02d8f475a96d |
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 {