aboutsummaryrefslogtreecommitdiffstats
path: root/util/prosodyctl.lua
diff options
context:
space:
mode:
authorJo?o Duarte <jvsDuarte08@gmail.com>2019-07-31 10:02:42 -0700
committerJo?o Duarte <jvsDuarte08@gmail.com>2019-07-31 10:02:42 -0700
commit03d787c0aca4c2267a1535cfc7bbb25372a5d349 (patch)
treeaf4043be0d86f9e680eb5fbbe65a7684592b1e3a /util/prosodyctl.lua
parent71920e97cca96b3db7fc3c0c17d133ae8b15e74e (diff)
downloadprosody-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.lua8
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 {