From 0cf860fc7a3f78c4a6171b93107e1e225e6bded7 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 19 Sep 2012 12:39:21 +0100 Subject: prosody, prosodyctl: chdir() to data directory on startup --- prosody | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'prosody') diff --git a/prosody b/prosody index b8de92f5..c1606874 100755 --- a/prosody +++ b/prosody @@ -228,6 +228,11 @@ function init_global_state() prosody.installed = true; end + if prosody.installed then + -- Change working directory to data path. + require "lfs".chdir(data_path); + end + -- Function to reload the config file function prosody.reload_config() log("info", "Reloading configuration file"); -- cgit v1.2.3