aboutsummaryrefslogtreecommitdiffstats
path: root/prosody
diff options
context:
space:
mode:
Diffstat (limited to 'prosody')
-rwxr-xr-xprosody6
1 files changed, 3 insertions, 3 deletions
diff --git a/prosody b/prosody
index 3bd50a6d..08b0d936 100755
--- a/prosody
+++ b/prosody
@@ -23,9 +23,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");
-- -- -- -- -- --
@@ -74,7 +74,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)