Merge branch 'change-checksafefile' into 'master'

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

See merge request easycorp/zentaopms!6414
This commit is contained in:
朱金勇
2022-11-30 06:05:27 +00:00
+2
View File
@@ -2365,6 +2365,8 @@ EOD;
*/
public function checkSafeFile()
{
if($this->app->isContainer()) return false;
if($this->app->getModuleName() == 'upgrade' and $this->session->upgrading) return false;
$statusFile = $this->app->getAppRoot() . 'www' . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . 'ok.txt';