aboutsummaryrefslogtreecommitdiffstats
path: root/prosody
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2008-12-03 19:57:08 +0500
committerWaqas Hussain <waqas20@gmail.com>2008-12-03 19:57:08 +0500
commitf1a9c23909b5472f68a9d81c858d267c48a9405e (patch)
treeb3175f1c6f60c52ecf1c607fbec36330c80b62c2 /prosody
parent254c2d85bdffc34727e382c90fc64d2fd142152a (diff)
downloadprosody-f1a9c23909b5472f68a9d81c858d267c48a9405e.tar.gz
prosody-f1a9c23909b5472f68a9d81c858d267c48a9405e.zip
config and data directories taken from path, and quoted to allow spaces in path
Diffstat (limited to 'prosody')
-rwxr-xr-xprosody6
1 files changed, 3 insertions, 3 deletions
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)