# HG changeset patch # User Matthew Wild # Date 1241534854 -3600 # Node ID 23fa69b911f722825ddf23f8c3f33e6f2cae982b # Parent 239d4362a04007a2f88ccdc6a34fb3e8a8218c1f prosodyctl: Use correct path for the data directory diff -r 239d4362a040 -r 23fa69b911f7 prosodyctl --- a/prosodyctl Tue May 05 14:19:45 2009 +0100 +++ b/prosodyctl Tue May 05 15:47:34 2009 +0100 @@ -61,6 +61,9 @@ 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");