Log the response file as a standalone XML file to be able to easily replay each installation

SVN:trunk[2374]
This commit is contained in:
Denis Flaven
2012-10-26 08:12:14 +00:00
parent a1f5a330d4
commit 99b4719335

View File

@@ -130,6 +130,16 @@ class ApplicationInstaller
$sSafeXml = preg_replace("|<pwd>([^<]*)</pwd>|", "<pwd>**removed**</pwd>", $sXML);
SetupPage::log_info("======= Installation starts =======\nParameters:\n$sSafeXml\n");
// Save the response file as a stand-alone file as well
$sFileName = 'install-'.date('Y-m-d');
$index = 0;
while(file_exists(APPROOT.'log/'.$sFileName.'.xml'))
{
$index++;
$sFileName = 'install-'.date('Y-m-d').'-'.$index;
}
file_put_contents(APPROOT.'log/'.$sFileName.'.xml', $sSafeXml);
break;
case 'copy':