Software /
code /
prosody
Changeset
1790:f06688f9b6c6
prosody: Add prosody.installed flag to indicate whether Prosody has been installed or is running from checkout
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 19 Sep 2009 11:25:59 +0100 |
parents | 1789:23a66fdf541e |
children | 1792:407f282f559e |
files | prosody |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/prosody Sat Sep 19 11:17:30 2009 +0100 +++ b/prosody Sat Sep 19 11:25:59 2009 +0100 @@ -100,6 +100,11 @@ prosody.platform = "posix"; end + prosody.installed = nil; + if CFG_SOURCEDIR and (prosody.platform == "windows" or CFG_SOURCEDIR:match("^/")) then + prosody.installed = true; + end + -- Function to reload the config file function prosody.reload_config() log("info", "Reloading configuration file");