Sat, 06 Dec 2008 19:50:37 +0000
Move the setting of data_path to fix #unfiledbug
prosody | file | annotate | diff | comparison | revisions |
--- a/prosody Sat Dec 06 19:49:14 2008 +0000 +++ b/prosody Sat Dec 06 19:50:37 2008 +0000 @@ -68,8 +68,6 @@ end end -require "util.datamanager".set_data_path(data_path); - local server = require "net.server" require "util.dependencies" @@ -78,7 +76,6 @@ sessions = {}; hosts = {}; - -- Load and initialise core modules -- require "util.import" @@ -104,9 +101,13 @@ ------------------------------------------------------------------------ + ------------- 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)