diff options
author | Morris Jobke <hey@morrisjobke.de> | 2021-05-19 10:12:57 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2021-05-19 10:12:57 +0200 |
commit | a577768aa6e98a66b5a49493f50207053368e020 (patch) | |
tree | ce119dc44f2c233935bc7224d73b7bebe1fe3199 /lib/private/Repair | |
parent | b89f4b33f05ae827c0821158b02fae039c763cec (diff) | |
download | nextcloud-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/private/Repair')
-rw-r--r-- | lib/private/Repair/NC22/LookupServerSendCheck.php | 5 |
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 { |