From f1a9c23909b5472f68a9d81c858d267c48a9405e Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Wed, 3 Dec 2008 19:57:08 +0500 Subject: config and data directories taken from path, and quoted to allow spaces in path --- prosody | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'prosody') diff --git a/prosody b/prosody index dd3cd068..9458c904 100755 --- a/prosody +++ b/prosody @@ -3,9 +3,9 @@ -- Config here -- CFG_SOURCEDIR=nil; -CFG_CONFIGDIR=nil; +CFG_CONFIGDIR=os.getenv("PROSODY_CFGDIR"); CFG_PLUGINDIR=nil; -CFG_DATADIR=nil; +CFG_DATADIR=os.getenv("PROSODY_DATADIR"); -- -- -- -- -- -- @@ -54,7 +54,7 @@ local _mkdir = {} function mkdir(path) path = path:gsub("/", path_separator); --print("mkdir",path); - local x = io.popen("mkdir "..path.." 2>&1"):read("*a"); + local x = io.popen("mkdir \""..path.."\" 2>&1"):read("*a"); end function encode(s) return s and (s:gsub("%W", function (c) return string.format("%%%x", c:byte()); end)); end function mkdirs(host) -- cgit v1.2.3