From 5d68579e42999e6c9dd7b6f0093bf4b39c105abe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Costa=20Silva?= <1574795+joaocsilva@users.noreply.github.com> Date: Thu, 6 Jun 2024 19:08:24 +0100 Subject: [PATCH] DQA-9538: Fresh Solr & Virtuoso dumps are not downloaded (#778) --- src/TaskRunner/Commands/DumpCommands.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/TaskRunner/Commands/DumpCommands.php b/src/TaskRunner/Commands/DumpCommands.php index 4b8c28858..54be5e804 100644 --- a/src/TaskRunner/Commands/DumpCommands.php +++ b/src/TaskRunner/Commands/DumpCommands.php @@ -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;