util.prosodyctl: Get Luarocks server from config
authorKim Alvefur <zash@zash.se>
Mon, 05 Oct 2020 21:24:14 +0200
changeset 11139 56490ffde93f
parent 11138 3e3f22043552
child 11140 d0d3e25b7300
util.prosodyctl: Get Luarocks server from config
prosodyctl
--- 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)