diff options
author | Waqas Hussain <waqas20@gmail.com> | 2008-12-03 19:57:08 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2008-12-03 19:57:08 +0500 |
commit | f1a9c23909b5472f68a9d81c858d267c48a9405e (patch) | |
tree | b3175f1c6f60c52ecf1c607fbec36330c80b62c2 | |
parent | 254c2d85bdffc34727e382c90fc64d2fd142152a (diff) | |
download | prosody-f1a9c23909b5472f68a9d81c858d267c48a9405e.tar.gz prosody-f1a9c23909b5472f68a9d81c858d267c48a9405e.zip |
config and data directories taken from path, and quoted to allow spaces in path
-rwxr-xr-x | prosody | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |