* If run in container, no need check ok.txt.

This commit is contained in:
zhujinyong
2022-06-29 16:35:39 +08:00
parent 8dfd960d52
commit 467b958ba0
2 changed files with 24 additions and 0 deletions
+11
View File
@@ -2831,6 +2831,17 @@ class baseRouter
fwrite($fh, "\n");
fclose($fh);
}
/**
* Check app if it is run in a container.
*
* @access public
* @return bool
*/
public function isContainer()
{
return strtolower(getenv('IS_CONTAINER')) == 'true';
}
}
/**