diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-09-19 11:25:59 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-09-19 11:25:59 +0100 |
commit | 080222fe19392b99d0822c6ad82153175c0a97df (patch) | |
tree | 27305c1fac0d71e4f128158bf6a7c65e409e3301 | |
parent | f3a0d9f41f3e82398a76361952ce1fdbbaeff5c3 (diff) | |
download | prosody-080222fe19392b99d0822c6ad82153175c0a97df.tar.gz prosody-080222fe19392b99d0822c6ad82153175c0a97df.zip |
prosody: Add prosody.installed flag to indicate whether Prosody has been installed or is running from checkout
-rwxr-xr-x | prosody | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -100,6 +100,11 @@ function init_global_state() 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"); |