prosodyctl: Use correct path for the data directory

Tue, 05 May 2009 15:47:34 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Tue, 05 May 2009 15:47:34 +0100
changeset 1120
23fa69b911f7
parent 1118
239d4362a040
child 1121
063036ac82b7
child 1122
07b2b5942957

prosodyctl: Use correct path for the data directory

prosodyctl file | annotate | diff | comparison | revisions
--- 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");

mercurial