diff options
author | Matthew Wild <mwild1@gmail.com> | 2011-01-07 11:59:05 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2011-01-07 11:59:05 +0000 |
commit | 4fac07320796a04ea2596f7c0ceaabaa608bd532 (patch) | |
tree | abd3446bd90c35e108a9336c9865f85d34eac4f5 /prosodyctl | |
parent | 79bcb5c7cfed2a2ea89d2bac48bacb9e9447d599 (diff) | |
parent | 1453a1753f69dbfd122436fca77888328058046b (diff) | |
download | prosody-4fac07320796a04ea2596f7c0ceaabaa608bd532.tar.gz prosody-4fac07320796a04ea2596f7c0ceaabaa608bd532.zip |
Merge 0.8->trunk
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; |