summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2021-05-19 10:12:57 +0200
committerMorris Jobke <hey@morrisjobke.de>2021-05-19 10:12:57 +0200
commita577768aa6e98a66b5a49493f50207053368e020 (patch)
treece119dc44f2c233935bc7224d73b7bebe1fe3199 /lib
parentb89f4b33f05ae827c0821158b02fae039c763cec (diff)
downloadnextcloud-server-a577768aa6e98a66b5a49493f50207053368e020.tar.gz
nextcloud-server-a577768aa6e98a66b5a49493f50207053368e020.zip
Refine version comparision for repair job for major version updates
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Repair/NC22/LookupServerSendCheck.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/Repair/NC22/LookupServerSendCheck.php b/lib/private/Repair/NC22/LookupServerSendCheck.php
index c9b79d237d0..de419c7857c 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 {