# HG changeset patch # User João Duarte # Date 1564592562 25200 # Node ID 5eba710e33f991571973e47ecd5f344078f810cc # Parent bb7d537e6fbafb6c9852def4e1c80ed04dc299f2 util.prosodyctl: Function now differentiates its output, depending if it is being called by install or remove diff -r bb7d537e6fba -r 5eba710e33f9 util/prosodyctl.lua --- 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 {