Merge pull request #26834 from nextcloud/enh/only_run_once

Inject the repair job only once
This commit is contained in:
Joas Schilling 2021-05-19 09:51:40 +02:00 committed by GitHub
commit b89f4b33f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -53,7 +53,8 @@ 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', '<');
return version_compare($versionFromBeforeUpdate, '22.0.0.3', '<') &&
version_compare($versionFromBeforeUpdate, '22.0.0.0', '>=');
}
public function run(IOutput $output): void {