aboutsummaryrefslogtreecommitdiffstats
path: root/prosodyctl
diff options
context:
space:
mode:
authorJoão Duarte <jvsDuarte08@gmail.com>2019-07-23 08:48:31 -0700
committerJoão Duarte <jvsDuarte08@gmail.com>2019-07-23 08:48:31 -0700
commitd5026a6f633fddc5c459a6e63b3568c073029387 (patch)
treef9c759682fb239c3e2bf282105c9a65bc7087e12 /prosodyctl
parent94ba83d8e657ba8c934c1875dac049f2f4f38101 (diff)
downloadprosody-d5026a6f633fddc5c459a6e63b3568c073029387.tar.gz
prosody-d5026a6f633fddc5c459a6e63b3568c073029387.zip
prosodyctl: The install command is now also checking a specified remote server
Diffstat (limited to 'prosodyctl')
-rwxr-xr-xprosodyctl6
1 files changed, 4 insertions, 2 deletions
diff --git a/prosodyctl b/prosodyctl
index 820a274f..f485f517 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -175,11 +175,13 @@ function commands.install(arg)
local dir = arg[1]:match("=(.+)$")
print("Installing module "..arg[2].." at "..dir)
-- These extra double brackets allow us to correctly process names with spaces
- os.execute("luarocks install --tree='"..dir.."' "..arg[2])
+ os.execute("luarocks --tree='"..dir.."' --server='http://localhost/' install "..arg[2])
return 0;
else
print("Installing module "..arg[1].." at "..prosody.paths.plugins)
- os.execute("luarocks --tree='"..prosody.paths.plugins.."' install "..arg[1])
+ -- 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])
return 0;
end
end