From 3e2923858af71c8c217ea4860a38e8d5853c5f70 Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Wed, 29 Jan 2025 19:19:54 -0300 Subject: [PATCH] fix: prevent error when run at integration tests Signed-off-by: Vitor Mattos --- lib/Service/Install/InstallService.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/Service/Install/InstallService.php b/lib/Service/Install/InstallService.php index 9cb9a7daa..41b5e7ad7 100644 --- a/lib/Service/Install/InstallService.php +++ b/lib/Service/Install/InstallService.php @@ -560,6 +560,12 @@ public function installCfssl(?bool $async = false): void { private function installCfsslByArchitecture(string $architecture): void { if ($this->isDownloadedFilesOk()) { + if (!$this->isCfsslBinInstalled()) { + // The binaries files could exists but not saved at database + $folder = $this->getFolder($this->resource); + $cfsslBinPath = $this->getInternalPathOfFolder($folder) . '/cfssl'; + $this->appConfig->setValueString(Application::APP_ID, 'cfssl_bin', $cfsslBinPath); + } return; } $folder = $this->getFolder($this->resource);