mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-18 14:58:43 +02:00
N°9434 - Do not launch dry run on a iTop version upgrade
This commit is contained in:
@@ -101,6 +101,13 @@ class DataAuditSequencer extends StepSequencer
|
||||
return false;
|
||||
}
|
||||
|
||||
$aInstalledInfo = $this->oRunTimeEnvironment->GetApplicationVersion($this->GetConfig());
|
||||
$sInstalledVersion = $aInstalledInfo['product_version'];
|
||||
|
||||
if ($sInstalledVersion !== ITOP_VERSION_FULL) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$sFinalEnvDir = APPROOT.'env-'.$this->oRunTimeEnvironment->GetFinalEnv();
|
||||
return is_dir($sFinalEnvDir);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user