diff --git a/lib/Service/Install/InstallService.php b/lib/Service/Install/InstallService.php index 6a0a0e6402..16c0e5cf2e 100644 --- a/lib/Service/Install/InstallService.php +++ b/lib/Service/Install/InstallService.php @@ -379,7 +379,7 @@ public function installJava(?bool $async = false): void { private function getLinuxDistributionToDownloadJava(): string { $distribution = shell_exec('cat /etc/*-release'); preg_match('/^ID=(?.*)$/m', $distribution, $matches); - if (isset($matches['ID']) && strtolower($matches['ID']) === 'alpine') { + if (isset($matches['version']) && strtolower($matches['version']) === 'alpine') { return 'alpine-linux'; } return 'linux';