diff options
author | Matthew Wild <mwild1@gmail.com> | 2011-01-07 11:56:52 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2011-01-07 11:56:52 +0000 |
commit | 371cf4887ae3a57e6c6832cb7781e10bb926d009 (patch) | |
tree | 62ca9ed0115cf5fd80800d509c4f2323fb8b396c /prosodyctl | |
parent | b7f05a5336c1d232f749f36989845445a0f72ca3 (diff) | |
download | prosody-371cf4887ae3a57e6c6832cb7781e10bb926d009.tar.gz prosody-371cf4887ae3a57e6c6832cb7781e10bb926d009.zip |
prosodyctl: Instead of calling datamanager.set_path(), just ensure prosody.paths.data always contains the correct value (including config)
Diffstat (limited to 'prosodyctl')
-rwxr-xr-x | prosodyctl | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -109,13 +109,14 @@ end local original_logging_config = config.get("*", "core", "log"); config.set("*", "core", "log", { { levels = { min="info" }, to = "console" } }); +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 = data_path }; + require "core.loggingmanager" dependencies.log_warnings(); -local data_path = config.get("*", "core", "data_path") or CFG_DATADIR or "data"; -require "util.datamanager".set_data_path(data_path); - -- Switch away from root and into the prosody user -- local switched_user, current_uid; |