X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=prosody;h=8dcb0096de6f8457043b10213f13eb8ca57165e3;hb=999d49c95d9a8b7d96068a68c11432899ce2f9c8;hp=42c3acad954e9af727c7887ac6bbcd861b733d3f;hpb=f793d5882e8e75e03836d0efc7d4fce2377aa0e3;p=prosody.git diff --git a/prosody b/prosody index 42c3acad..8dcb0096 100755 --- a/prosody +++ b/prosody @@ -183,9 +183,10 @@ function init_global_state() prosody.full_sessions = full_sessions; prosody.hosts = hosts; + local data_path = config.get("*", "core", "data_path") or CFG_DATADIR or "data"; prosody.paths = { source = CFG_SOURCEDIR, config = CFG_CONFIGDIR, - plugins = CFG_PLUGINDIR, data = CFG_DATADIR }; - + plugins = CFG_PLUGINDIR, data = data_path }; + prosody.arg = _G.arg; prosody.platform = "unknown"; @@ -344,8 +345,6 @@ function load_secondary_libraries() end function init_data_store() - local data_path = config.get("*", "core", "data_path") or CFG_DATADIR or "data"; - require "util.datamanager".set_data_path(data_path); require "core.storagemanager"; end