Changeset

10209:e6ba8bb91905

util/prosodyctl: call_luarocks now sets a directory variable itself
author João Duarte <jvsDuarte08@gmail.com>
date Fri, 16 Aug 2019 15:03:50 -0700
parents 10208:219a4958673d
children 10210:9fdda9fafc3c
files util/prosodyctl.lua
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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