diff --git a/lib/SelfTest.php b/lib/SelfTest.php index 092b037b83457a0b205c2c3e6c20c3ff46e7973d..4857f2d000db6d8e4fc1489cf62b99f850df0923 100644 --- a/lib/SelfTest.php +++ b/lib/SelfTest.php @@ -156,12 +156,13 @@ class SelfTest { return 1; } $appVersion = $this->appManager->getAppVersion('notify_push'); + $appVersionNoMinor = substr($appVersion, 0, strrpos($appVersion, '.')); + $binaryVersionNoMinor = substr($binaryVersion, 0, strrpos($binaryVersion, '.')); - if ($appVersion === $binaryVersion) { + if ($appVersionNoMinor === $binaryVersionNoMinor) { $output->writeln("<info>✓ push server is running the same version as the app</info>"); } else { $output->writeln("<error>🗴 push server (version $binaryVersion) is not the same version as the app (version $appVersion).</error>"); - return 1; } return 0;