Mercurial > prosody-hg
diff prosody @ 5134:43c5227fdd3b
prosody, prosodyctl: chdir() to data directory on startup
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Wed, 19 Sep 2012 12:39:21 +0100 |
| parents | dcc8e789df36 |
| children | 815c689f85ad |
line wrap: on
line diff
--- a/prosody Wed Sep 19 12:14:08 2012 +0100 +++ b/prosody Wed Sep 19 12:39:21 2012 +0100 @@ -228,6 +228,11 @@ 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");
