diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-03-03 20:12:24 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-03-03 20:12:24 +0000 |
commit | c9740f1fcf80ed25c1ab18bfba990c6d4fbe6b15 (patch) | |
tree | 27e10c86b0be40134bdd5d77c0a4ed22538de305 /prosodyctl | |
parent | 15fb8092199a74af4da602d2c93ca3f0a825d21e (diff) | |
download | prosody-c9740f1fcf80ed25c1ab18bfba990c6d4fbe6b15.tar.gz prosody-c9740f1fcf80ed25c1ab18bfba990c6d4fbe6b15.zip |
prosodyctl: Fix to load LuaRocks 2.x if we have it
Diffstat (limited to 'prosodyctl')
-rwxr-xr-x | prosodyctl | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -30,7 +30,10 @@ if CFG_DATADIR then end -- Required to be able to find packages installed with luarocks -pcall(require, "luarocks.require") +if not pcall(require, "luarocks.loader") then -- Try LuaRocks 2.x + pcall(require, "luarocks.require") -- Try LuaRocks 1.x +end + config = require "core.configmanager" |