util.prosodyctl: Import CFG_SOURCEDIR from the global environment (thanks macaronyde!)

Wed, 06 May 2009 21:45:02 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Wed, 06 May 2009 21:45:02 +0100
changeset 1130
442c87de8e2d
parent 1129
3ee9047334db
child 1131
83a150e3b3bb
child 1143
5bab3eb566ad

util.prosodyctl: Import CFG_SOURCEDIR from the global environment (thanks macaronyde!)

util/prosodyctl.lua file | annotate | diff | comparison | revisions
--- a/util/prosodyctl.lua	Tue May 05 18:08:33 2009 +0100
+++ b/util/prosodyctl.lua	Wed May 06 21:45:02 2009 +0100
@@ -9,6 +9,9 @@
 
 local io, os = io, os;
 local tostring, tonumber = tostring, tonumber;
+
+local CFG_SOURCEDIR = _G.CFG_SOURCEDIR;
+
 module "prosodyctl"
 
 function adduser(params)

mercurial