# HG changeset patch # User Matthew Wild # Date 1253355959 -3600 # Node ID f06688f9b6c6f87052e3d7ab4db5e89d37e16c27 # Parent 23a66fdf541e1c304d1e90480c94e988687eaf95 prosody: Add prosody.installed flag to indicate whether Prosody has been installed or is running from checkout diff -r 23a66fdf541e -r f06688f9b6c6 prosody --- 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");