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
commit289378113abb5b92d1628369fad66454b58cb738 (patch)
treeaf4043be0d86f9e680eb5fbbe65a7684592b1e3a /util/prosodyctl.lua
parent7e472f4b26c85841e3306cf46b3bfd378dabca25 (diff)
downloadprosody-289378113abb5b92d1628369fad66454b58cb738.tar.gz
prosody-289378113abb5b92d1628369fad66454b58cb738.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 {