N°9454 - Make MTT compatible with the dry run

This commit is contained in:
Eric Espie
2026-06-04 17:47:06 +02:00
parent 56dfa1c99c
commit b96e0ff054
2 changed files with 3 additions and 2 deletions

View File

@@ -104,7 +104,7 @@ JS);
$aParams = [
'selected_modules' => '[]',
'selected_extensions' => '[]',
'display_choices' => '[]',
'display_choices' => '',
'added_extensions' => '[]',
'removed_extensions' => '[]',
'extensions_not_uninstallable' => '[]',

View File

@@ -42,7 +42,8 @@ class WizStepLandingBeforeAudit extends WizStepModulesChoice
*/
public function UpdateWizardStateAndGetNextStep($bMoveForward = true): WizardState
{
$sBuildConfigFile = APPCONF.$this->oRuntimeEnv->GetBuildEnv().'/'.ITOP_CONFIG_FILE;
// Change the rights to production config file !
$sBuildConfigFile = APPCONF.ITOP_DEFAULT_ENV.'/'.ITOP_CONFIG_FILE;
@chmod($sBuildConfigFile, 0770); // In case it exists: RWX for owner and group, nothing for others
$oConfig = new Config($sBuildConfigFile);