From dcc4ec1050829813fbc8ff74633d900a9c2678e9 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sat, 6 Dec 2008 19:50:37 +0000 Subject: Move the setting of data_path to fix #unfiledbug --- prosody | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'prosody') diff --git a/prosody b/prosody index 584af214..76b8162d 100755 --- a/prosody +++ b/prosody @@ -68,8 +68,6 @@ do end end -require "util.datamanager".set_data_path(data_path); - local server = require "net.server" require "util.dependencies" @@ -78,7 +76,6 @@ require "util.dependencies" sessions = {}; hosts = {}; - -- Load and initialise core modules -- require "util.import" @@ -104,9 +101,13 @@ require "util.jid" ------------------------------------------------------------------------ + ------------- Begin code without a home --------------------- local data_path = config.get("*", "core", "data_path") or CFG_DATADIR or "data"; +require "util.datamanager".set_data_path(data_path); + + local path_separator = "/"; if os.getenv("WINDIR") then path_separator = "\\" end local _mkdir = {} function mkdir(path) -- cgit v1.2.3