Path fix for auto-creating directories
authorWaqas Hussain <waqas20@gmail.com>
Sun, 30 Nov 2008 01:14:41 +0000 (06:14 +0500)
committerWaqas Hussain <waqas20@gmail.com>
Sun, 30 Nov 2008 01:14:41 +0000 (06:14 +0500)
prosody

diff --git a/prosody b/prosody
index 10aea492d891123ae0c5321ba7111569d2bf9ffb..77f72e7ff1c12f51e61d5757ea0d2071f50638de 100755 (executable)
--- a/prosody
+++ b/prosody
@@ -94,7 +94,7 @@ local defined_hosts = config.getconfig();
 for host, host_config in pairs(defined_hosts) do
        if host ~= "*" and (host_config.core.enabled == nil or host_config.core.enabled) then
                hosts[host] = {type = "local", connected = true, sessions = {}, host = host, s2sout = {} };
-               mkdirs(data_path.."/"..host);
+               mkdirs(host);
        end
 end