mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°1595 - Setup : Blocking error on backup failure
SVN:trunk[6010]
This commit is contained in:
@@ -6,7 +6,9 @@
|
||||
"ext-mcrypt": "*",
|
||||
"ext-cli": "*",
|
||||
"ext-soap": "*",
|
||||
"ext-json": "*"
|
||||
"ext-json": "*",
|
||||
"ext-zip": "*",
|
||||
"ext-mysqli": "*"
|
||||
},
|
||||
"config": {
|
||||
"platform": {
|
||||
|
||||
@@ -235,18 +235,20 @@ if (class_exists('ZipArchive')) // The setup must be able to start even if the "
|
||||
/**
|
||||
* Create a normalized backup name, depending on the current date/time and Database
|
||||
*
|
||||
* @param sNameSpec string Name and path, eventually containing itop placeholders + time formatting specs
|
||||
* @param string sMySQLBinDir Name and path, eventually containing itop placeholders + time formatting specs
|
||||
*/
|
||||
public function SetMySQLBinDir($sMySQLBinDir)
|
||||
{
|
||||
$this->sMySQLBinDir = $sMySQLBinDir;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a normalized backup name, depending on the current date/time and Database
|
||||
*
|
||||
* @param string sNameSpec Name and path, eventually containing itop placeholders + time formatting specs
|
||||
*/
|
||||
/**
|
||||
* Create a normalized backup name, depending on the current date/time and Database
|
||||
*
|
||||
* @param string sNameSpec Name and path, eventually containing itop placeholders + time formatting specs
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function MakeName($sNameSpec = "__DB__-%Y-%m-%d")
|
||||
{
|
||||
$sFileName = $sNameSpec;
|
||||
@@ -646,7 +648,7 @@ if (class_exists('ZipArchive')) // The setup must be able to start even if the "
|
||||
{
|
||||
if (empty($sData))
|
||||
{
|
||||
return;
|
||||
return '';
|
||||
}
|
||||
|
||||
return ' --'.$sCliArgName.'='.self::EscapeShellArg($sData);
|
||||
|
||||
@@ -680,7 +680,7 @@ class ArchiveTar
|
||||
*/
|
||||
public function _error($p_message)
|
||||
{
|
||||
$this->error_object = $this->raiseError($p_message);
|
||||
IssueLog::Error($p_message);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -688,7 +688,7 @@ class ArchiveTar
|
||||
*/
|
||||
public function _warning($p_message)
|
||||
{
|
||||
$this->error_object = $this->raiseError($p_message);
|
||||
IssueLog::Warning($p_message);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user