diff options
author | Jo?o Duarte <jvsDuarte08@gmail.com> | 2019-07-31 10:02:42 -0700 |
---|---|---|
committer | Jo?o Duarte <jvsDuarte08@gmail.com> | 2019-07-31 10:02:42 -0700 |
commit | 03d787c0aca4c2267a1535cfc7bbb25372a5d349 (patch) | |
tree | af4043be0d86f9e680eb5fbbe65a7684592b1e3a /util/prosodyctl.lua | |
parent | 71920e97cca96b3db7fc3c0c17d133ae8b15e74e (diff) | |
download | prosody-03d787c0aca4c2267a1535cfc7bbb25372a5d349.tar.gz prosody-03d787c0aca4c2267a1535cfc7bbb25372a5d349.zip |
util.prosodyctl: Function now differentiates its output, depending if it is being called by install or remove
Diffstat (limited to 'util/prosodyctl.lua')
-rw-r--r-- | util/prosodyctl.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/util/prosodyctl.lua b/util/prosodyctl.lua index 22571061..a98a89d7 100644 --- a/util/prosodyctl.lua +++ b/util/prosodyctl.lua @@ -307,9 +307,15 @@ local function check_flags(arg) 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 { |