mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
The new 2.0 setup is under way... disabled copy and backup
SVN:trunk[2190]
This commit is contained in:
@@ -126,7 +126,8 @@ class ApplicationInstaller
|
||||
$aPreinstall = $this->oParams->Get('preinstall');
|
||||
$aCopies = $aPreinstall['copies'];
|
||||
|
||||
$sReport = self::DoCopy($aCopies);
|
||||
// disabled - $sReport = self::DoCopy($aCopies);
|
||||
$sReport = "copy disabled...";
|
||||
|
||||
$aResult = array(
|
||||
'status' => self::OK,
|
||||
|
||||
@@ -1131,7 +1131,6 @@ EOF
|
||||
$sMode = $this->oWizard->GetParameter('mode', 'install');
|
||||
$sBackupDestination = '';
|
||||
$sConfigurationFile = '';
|
||||
$sSourceEnvironment = 'production';
|
||||
$sDBName = $this->oWizard->GetParameter('db_name');
|
||||
if ($sMode == 'upgrade')
|
||||
{
|
||||
@@ -1144,7 +1143,6 @@ EOF
|
||||
if ($aPreviousInstance['found'])
|
||||
{
|
||||
$sConfigurationFile = $aPreviousInstance['configuration_file'];
|
||||
$sSourceEnvironment = $aPreviousInstance['source_environment'];
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1168,13 +1166,8 @@ EOF
|
||||
// 'destination' => '',
|
||||
// ),
|
||||
),
|
||||
'backup' => array (
|
||||
'destination' => $sBackupDestination,
|
||||
'configuration_file' => $sConfigurationFile,
|
||||
),
|
||||
),
|
||||
'source_dir' => 'datamodel',
|
||||
'source_env' => $sSourceEnvironment,
|
||||
'target_env' => 'production',
|
||||
'workspace_dir' => '',
|
||||
'database' => array (
|
||||
@@ -1195,6 +1188,14 @@ EOF
|
||||
'sample_data' => ($this->oWizard->GetParameter('sample_data', '') == 'yes') ? true : false ,
|
||||
'options' => json_decode($this->oWizard->GetParameter('misc_options')),
|
||||
);
|
||||
|
||||
if ($sBackupDestination != '')
|
||||
{
|
||||
$aInstallParams['backup'] = array (
|
||||
'destination' => $sBackupDestination,
|
||||
'configuration_file' => $sConfigurationFile,
|
||||
);
|
||||
}
|
||||
|
||||
$sJSONData = json_encode($aInstallParams);
|
||||
$oPage->add('<input type="hidden" id="installer_parameters" value="'.htmlentities($sJSONData, ENT_QUOTES, 'UTF-8').'"/>');
|
||||
|
||||
Reference in New Issue
Block a user