util/prosodyctl: call_luarocks now sets a directory variable itself
authorJoão Duarte <jvsDuarte08@gmail.com>
Fri, 16 Aug 2019 15:03:50 -0700
changeset 10213 e6ba8bb91905
parent 10212 219a4958673d
child 10214 9fdda9fafc3c
util/prosodyctl: call_luarocks now sets a directory variable itself
util/prosodyctl.lua
--- a/util/prosodyctl.lua	Fri Aug 16 15:01:57 2019 -0700
+++ b/util/prosodyctl.lua	Fri Aug 16 15:03:50 2019 -0700
@@ -296,7 +296,8 @@
 	end
 end
 
-local function call_luarocks(operation, mod, dir)
+local function call_luarocks(mod, operation)
+	local dir = get_path_custom_plugins(prosody.paths.plugins);
 	if operation == "install" then
 		show_message("Installing %s at %s", mod, dir);
 	elseif operation == "remove" then