From a577768aa6e98a66b5a49493f50207053368e020 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Wed, 19 May 2021 10:12:57 +0200 Subject: [PATCH] Refine version comparision for repair job for major version updates Signed-off-by: Morris Jobke --- lib/private/Repair/NC22/LookupServerSendCheck.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/private/Repair/NC22/LookupServerSendCheck.php b/lib/private/Repair/NC22/LookupServerSendCheck.php index c9b79d237d..de419c7857 100644 --- a/lib/private/Repair/NC22/LookupServerSendCheck.php +++ b/lib/private/Repair/NC22/LookupServerSendCheck.php @@ -53,8 +53,9 @@ class LookupServerSendCheck implements IRepairStep { $versionFromBeforeUpdate = $this->config->getSystemValue('version', '0.0.0.0'); // was added to 22.0.0.3 - return version_compare($versionFromBeforeUpdate, '22.0.0.3', '<') && - version_compare($versionFromBeforeUpdate, '22.0.0.0', '>='); + return (version_compare($versionFromBeforeUpdate, '22.0.0.3', '<') && version_compare($versionFromBeforeUpdate, '22.0.0.0', '>=')) + || + (version_compare($versionFromBeforeUpdate, '21.0.1.2', '<') && version_compare($versionFromBeforeUpdate, '21.0.0.0', '>')); } public function run(IOutput $output): void {