mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
prosodyctl: Use correct path for the data directory
This commit is contained in:
parent
a4afb37265
commit
6556394e75
1 changed files with 3 additions and 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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue