aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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");