From 6556394e75a826bff865cfacb0b681812372e064 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 5 May 2009 15:47:34 +0100 Subject: prosodyctl: Use correct path for the data directory --- prosodyctl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/prosodyctl b/prosodyctl index f451b7ee..0709bcb9 100755 --- a/prosodyctl +++ b/prosodyctl @@ -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"); -- cgit v1.2.3