diff options
-rw-r--r-- | util/prosodyctl.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/prosodyctl.lua b/util/prosodyctl.lua index f7d9a3cc..4d49cd16 100644 --- a/util/prosodyctl.lua +++ b/util/prosodyctl.lua @@ -221,8 +221,8 @@ local render_cli = interpolation.new("%b{}", function (s) return "'"..s:gsub("'" local function call_luarocks(operation, mod, server) local dir = prosody.paths.installer; - local ok, _, code = os.execute(render_cli("luarocks {op} --tree={dir} {server&--server={server}} {mod?}", { - dir = dir; op = operation; mod = mod; server = server; + local ok, _, code = os.execute(render_cli("luarocks --lua-version={luav} {op} --tree={dir} {server&--server={server}} {mod?}", { + dir = dir; op = operation; mod = mod; server = server; luav = _VERSION:match("5%.%d"); })); if type(ok) == "number" then code = ok; end return code; |