* Adjust install env check logic.

This commit is contained in:
caoyanyi
2024-04-15 16:48:42 +08:00
parent ffdda29a35
commit 80183da185
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -383,7 +383,7 @@ class install extends control
$this->loadModel('metric')->updateMetricDate();
$skipApp = (string)getenv('ZT_SKIP_DEVOPS_INIT');
$link = ($this->config->inQuickon && !$skipApp) ? inlink('app') : inlink('step6');
$link = ($this->config->inQuickon && (!$skipApp || $skipApp == 'false')) ? inlink('app') : inlink('step6');
return $this->send(array('result' => 'success', 'load' => $link));
}
+1 -1
View File
@@ -326,7 +326,7 @@ class installZen extends install
\$config->default->lang = getenv('ZT_DEFAULT_LANG');
\$hasSlaveDB = (string)getenv('ENABLE_DB_SLAVE');
if(\$hasSlaveDB)
if(\$hasSlaveDB && \$hasSlaveDB != 'false')
{
\$slaveDB = new stdclass();
\$slaveDB->host = getenv('ZT_SLAVE_DB_HOST');