aboutsummaryrefslogtreecommitdiffstats
path: root/prosody
diff options
context:
space:
mode:
Diffstat (limited to 'prosody')
-rwxr-xr-xprosody5
1 files changed, 5 insertions, 0 deletions
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");