From 080222fe19392b99d0822c6ad82153175c0a97df Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sat, 19 Sep 2009 11:25:59 +0100 Subject: prosody: Add prosody.installed flag to indicate whether Prosody has been installed or is running from checkout --- prosody | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'prosody') diff --git a/prosody b/prosody index 18cb5544..e7457627 100755 --- a/prosody +++ b/prosody @@ -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"); -- cgit v1.2.3