Changeset

11135:56490ffde93f

util.prosodyctl: Get Luarocks server from config
author Kim Alvefur <zash@zash.se>
date Mon, 05 Oct 2020 21:24:14 +0200
parents 11134:3e3f22043552
children 11136:d0d3e25b7300
files prosodyctl
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/prosodyctl	Mon Oct 05 21:24:07 2020 +0200
+++ b/prosodyctl	Mon Oct 05 21:24:14 2020 +0200
@@ -78,7 +78,8 @@
 		show_usage([[install]], [[Installs a prosody/luarocks plugin]]);
 		return 1;
 	end
-	call_luarocks("install", arg[1], "http://localhost/");
+	-- TODO finalize config option name
+	call_luarocks("install", arg[1], configmanager.get("*", "plugin_server") or "http://localhost/");
 end
 
 function commands.remove(arg)