From 80ca3388031b2994d608ec2eb6229f46add2bebe Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Tue, 10 Sep 2024 14:53:11 -0300 Subject: [PATCH] fix: check linux distro when get java path Signed-off-by: Vitor Mattos [skip ci] --- lib/Service/Install/SignSetupService.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Service/Install/SignSetupService.php b/lib/Service/Install/SignSetupService.php index 086daec4d..69abad003 100644 --- a/lib/Service/Install/SignSetupService.php +++ b/lib/Service/Install/SignSetupService.php @@ -141,7 +141,8 @@ public function getInstallPath(): string { case 'java': $path = $this->appConfig->getAppValue('java_path'); $installPath = substr($path, 0, -strlen('/bin/java')); - $expected = "{$this->instanceId}/libresign/{$this->architecture}/{$this->distro}/java"; + $distro = $this->getLinuxDistributionToDownloadJava(); + $expected = "{$this->instanceId}/libresign/{$this->architecture}/{$distro}/java"; if (!str_contains($installPath, $expected)) { $installPath = preg_replace( "/{$this->instanceId}\/libresign\/(\w+)\/(\w+)\/java/i",