prosody: Add prosody.installed flag to indicate whether Prosody has been installed or is running from checkout

Sat, 19 Sep 2009 11:25:59 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Sat, 19 Sep 2009 11:25:59 +0100
changeset 1790
f06688f9b6c6
parent 1789
23a66fdf541e
child 1792
407f282f559e

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");

mercurial