* Adjust install env check logic.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user