Sat, 19 Sep 2009 11:25:59 +0100
prosody: Add prosody.installed flag to indicate whether Prosody has been installed or is running from checkout
prosody | file | annotate | diff | comparison | revisions |
--- 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");