mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
N°7150 - Backup : on MariaDB >= 11.0.1 call mariadb-dump instead of mysqldump - fix setup
This commit is contained in:
@@ -559,11 +559,14 @@ class SetupUtils
|
|||||||
$aResult[] = new CheckResult(CheckResult::ERROR, "The PHP exec() function has been disabled on this server");
|
$aResult[] = new CheckResult(CheckResult::ERROR, "The PHP exec() function has been disabled on this server");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MetaModel::LoadConfig(utils::GetConfig());
|
||||||
// availability of mysqldump
|
// availability of mysqldump
|
||||||
if (empty($sMySQLBinDir) && null != MetaModel::GetConfig()) {
|
if (empty($sMySQLBinDir) && null != MetaModel::GetConfig()) {
|
||||||
$sMySQLBinDir = MetaModel::GetConfig()->GetModuleSetting('itop-backup', 'mysql_bindir', '');
|
$sMySQLBinDir = MetaModel::GetConfig()->GetModuleSetting('itop-backup', 'mysql_bindir', '');
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
$oConfig = MetaModel::GetConfig();
|
||||||
|
CMDBSource::InitFromConfig($oConfig);
|
||||||
$sMySQLDump = DBBackup::MakeSafeMySQLCommand($sMySQLBinDir, DBBackup::GetDumpFunction());
|
$sMySQLDump = DBBackup::MakeSafeMySQLCommand($sMySQLBinDir, DBBackup::GetDumpFunction());
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$aResult[] = new CheckResult(CheckResult::ERROR, $e->getMessage());
|
$aResult[] = new CheckResult(CheckResult::ERROR, $e->getMessage());
|
||||||
|
|||||||
Reference in New Issue
Block a user