summaryrefslogtreecommitdiff
path: root/classes/config.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-11-17 10:52:37 +0300
committerAndrew Dolgov <[email protected]>2021-11-17 10:52:37 +0300
commitbd66eff7cc80fe8e1f5bee23483fc3c165de0a6c (patch)
tree5c2ccfc15193fc4f42beab8ebba948bbf0b1ea7c /classes/config.php
parent938f7db482626c146805d466c73ec0337d6dc638 (diff)
better check for docker
Diffstat (limited to 'classes/config.php')
-rw-r--r--classes/config.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/config.php b/classes/config.php
index 8813b9a69..6832846a2 100644
--- a/classes/config.php
+++ b/classes/config.php
@@ -299,7 +299,7 @@ class Config {
user_error("Unable to determine version: " . $this->version["version"], E_USER_WARNING);
$this->version["version"] = "UNKNOWN (Unsupported, Git error)";
- } else if (!getenv("TTRSS_SELF_URL_PATH") || !getenv("SCRIPT_ROOT")) {
+ } else if (!getenv("TTRSS_SELF_URL_PATH") || !file_exists("/.dockerenv")) {
$this->version["version"] .= " (Unsupported)";
}