N°9526 - Message de warning dans le unattended sur une professional

This commit is contained in:
odain
2026-04-21 10:11:19 +02:00
parent 900bd6956a
commit 3b0832781a

View File

@@ -277,11 +277,12 @@ if ($bInstall) {
echo "Starting the unattended installation...\n"; echo "Starting the unattended installation...\n";
$oWizard = new DataAuditSequencer($oParams); $oWizard = new DataAuditSequencer($oParams);
$bRes = $oWizard->ExecuteAllSteps(); $sComment = "Done by Unattended Install";
$bRes = $oWizard->ExecuteAllSteps(sComment:$sComment);
if ($bRes) { if ($bRes) {
$oWizard = new ApplicationInstallSequencer($oParams); $oWizard = new ApplicationInstallSequencer($oParams);
$bRes = $oWizard->ExecuteAllSteps(); $bRes = $oWizard->ExecuteAllSteps(sComment:$sComment);
} }
if (!$bRes) { if (!$bRes) {
@@ -289,15 +290,15 @@ if ($bInstall) {
$bFoundIssues = true; $bFoundIssues = true;
} else { } else {
try { try {
$oMysqli = CMDBSource::GetMysqliInstance($sDBServer, $sDBUser, $sDBPwd, null, $bDBTlsEnabled, $sDBTlsCa, true); $sDeltaFile = APPROOT.'data/'.$sTargetEnvironment.'.delta.xml';
if ($oMysqli->select_db($sDBName)) { if (is_readable($sDeltaFile)) {
// Check the presence of a table to record information about the MTP (from the Designer) $oMysqli = CMDBSource::GetMysqliInstance($sDBServer, $sDBUser, $sDBPwd, null, $bDBTlsEnabled, $sDBTlsCa, true);
$sDesignerUpdatesTable = $sDBPrefix.'priv_designer_update'; if ($oMysqli->select_db($sDBName)) {
$sSQL = "SELECT id FROM `$sDesignerUpdatesTable`"; // Check the presence of a table to record information about the MTP (from the Designer)
if ($oMysqli->query($sSQL) !== false) { $sDesignerUpdatesTable = $sDBPrefix.'priv_designer_update';
// Record the Designer Udpates in the priv_designer_update table $sSQL = "SELECT id FROM `$sDesignerUpdatesTable`";
$sDeltaFile = APPROOT.'data/'.$sTargetEnvironment.'.delta.xml'; if ($oMysqli->query($sSQL) !== false) {
if (is_readable($sDeltaFile)) { // Record the Designer Udpates in the priv_designer_update table
// Retrieve the revision // Retrieve the revision
$oDoc = new DOMDocument(); $oDoc = new DOMDocument();
$oDoc->load($sDeltaFile); $oDoc->load($sDeltaFile);
@@ -315,8 +316,6 @@ if ($bInstall) {
echo "\nFailed to read the revision from $sDeltaFile file. No designer update information will be recorded.\n"; echo "\nFailed to read the revision from $sDeltaFile file. No designer update information will be recorded.\n";
} }
} else {
echo "\nNo $sDeltaFile file (or the file is not accessible). No designer update information to record.\n";
} }
} }
} }