aboutsummaryrefslogtreecommitdiffstats
path: root/prosody
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-09-19 11:25:59 +0100
committerMatthew Wild <mwild1@gmail.com>2009-09-19 11:25:59 +0100
commit080222fe19392b99d0822c6ad82153175c0a97df (patch)
tree27305c1fac0d71e4f128158bf6a7c65e409e3301 /prosody
parentf3a0d9f41f3e82398a76361952ce1fdbbaeff5c3 (diff)
downloadprosody-080222fe19392b99d0822c6ad82153175c0a97df.tar.gz
prosody-080222fe19392b99d0822c6ad82153175c0a97df.zip
prosody: Add prosody.installed flag to indicate whether Prosody has been installed or is running from checkout
Diffstat (limited to 'prosody')
-rwxr-xr-xprosody5
1 files changed, 5 insertions, 0 deletions
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");