util.prosodyctl: Import CFG_SOURCEDIR from the global environment (thanks macaronyde!)
authorMatthew Wild <mwild1@gmail.com>
Wed, 6 May 2009 20:45:02 +0000 (21:45 +0100)
committerMatthew Wild <mwild1@gmail.com>
Wed, 6 May 2009 20:45:02 +0000 (21:45 +0100)
util/prosodyctl.lua

index 3b523a786bd419800b9d261c05fcdf316f5baec6..ce223459229145163c10840c6f8e9caf31f953e7 100644 (file)
@@ -9,6 +9,9 @@ local nodeprep, nameprep = stringprep.nodeprep, stringprep.nameprep;
 
 local io, os = io, os;
 local tostring, tonumber = tostring, tonumber;
+
+local CFG_SOURCEDIR = _G.CFG_SOURCEDIR;
+
 module "prosodyctl"
 
 function adduser(params)