Inject the repair job only once

Since we backproted we should do a better check. Else we run the code
again for everybody upgrading to 22.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2021-04-29 20:23:12 +02:00
parent 22ba8fa78d
commit 3b074c811a
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 {