Skip to content

Commit

Permalink
DQA-9538: Fresh Solr & Virtuoso dumps are not downloaded (#778)
Browse files Browse the repository at this point in the history
  • Loading branch information
joaocsilva authored Jun 6, 2024
1 parent 18fb66e commit 5d68579
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/TaskRunner/Commands/DumpCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,13 @@ private function customCheckNewerDump(string $tmpFile, string $dumpfile): bool
private function nextcloudCheckNewerDump(string $link, string $service): bool
{
$tmpFolder = $this->tmpDirectory();
$opts = ToolCommands::parseOptsYml();
$ext = isset($opts['mydumper']) && $opts['mydumper'] ? '.tar' : '.gz';
$ext = '.gz';
if ($service === 'mysql') {
$opts = ToolCommands::parseOptsYml();
if (isset($opts['mydumper']) && $opts['mydumper']) {
$ext = '.tar';
}
}
$dump = "$tmpFolder/$service$ext";
if (!file_exists($dump)) {
return false;
Expand Down

0 comments on commit 5d68579

Please sign in to comment.