From 35b4ba9e92cb93ba18bf46001d700c59218fca5e Mon Sep 17 00:00:00 2001 From: Lufei Date: Wed, 30 Nov 2022 11:19:31 +0800 Subject: [PATCH] * If run in container, no need check ok.txt. --- module/common/model.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/common/model.php b/module/common/model.php index 36662cf31a..0174708a20 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -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';