aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJo?o Duarte <jvsDuarte08@gmail.com>2019-07-23 10:26:00 -0700
committerJo?o Duarte <jvsDuarte08@gmail.com>2019-07-23 10:26:00 -0700
commit9aeb87e816f6be135344f68c5a4205cc3d4d252d (patch)
tree35836bfbf5551f9a5e981a9fae483499d297fadb
parent86016bed9b3d17207b4e29b6b3fe3c700cf16abb (diff)
downloadprosody-9aeb87e816f6be135344f68c5a4205cc3d4d252d.tar.gz
prosody-9aeb87e816f6be135344f68c5a4205cc3d4d252d.zip
prosodyctl: The install command now prints output regarding module configuration
-rwxr-xr-xprosodyctl3
1 files changed, 3 insertions, 0 deletions
diff --git a/prosodyctl b/prosodyctl
index f485f517..26d6a850 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -76,6 +76,7 @@ local show_usage = prosodyctl.show_usage;
local show_yesno = prosodyctl.show_yesno;
local show_prompt = prosodyctl.show_prompt;
local read_password = prosodyctl.read_password;
+local show_module_configuration_help = prosodyctl.show_module_configuration_help;
local jid_split = require "util.jid".prepped_split;
@@ -176,12 +177,14 @@ function commands.install(arg)
print("Installing module "..arg[2].." at "..dir)
-- These extra double brackets allow us to correctly process names with spaces
os.execute("luarocks --tree='"..dir.."' --server='http://localhost/' install "..arg[2])
+ show_module_configuration_help(arg[2]);
return 0;
else
print("Installing module "..arg[1].." at "..prosody.paths.plugins)
-- I've build a local server to upload some new rockspecs, like mod_smacks'. We can replace this server by one from
-- prosody's, where we can oficially disbrute rocks/rockspecs for all modules
os.execute("luarocks --tree='"..prosody.paths.plugins.."' --server='http://localhost/' install "..arg[1])
+ show_module_configuration_help(arg[1]);
return 0;
end
end