diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-05-05 15:47:34 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-05-05 15:47:34 +0100 |
commit | 6556394e75a826bff865cfacb0b681812372e064 (patch) | |
tree | 1e0b3b4cf1c1195276cd46b0195709a124ec6a06 | |
parent | a4afb372653da9df1bc407230838a7bb958242ac (diff) | |
download | prosody-6556394e75a826bff865cfacb0b681812372e064.tar.gz prosody-6556394e75a826bff865cfacb0b681812372e064.zip |
prosodyctl: Use correct path for the data directory
-rwxr-xr-x | prosodyctl | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -61,6 +61,9 @@ do end end +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; local ok, pposix = pcall(require, "util.pposix"); |