From ef567afe7c9afa02799b2cbf2022a2e7c943318f Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Fri, 6 Feb 2026 20:37:47 -0300 Subject: [PATCH] fix: check if directory exists Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- lib/Service/Install/InstallService.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/Service/Install/InstallService.php b/lib/Service/Install/InstallService.php index 37fa6b36e5..c8889e6866 100644 --- a/lib/Service/Install/InstallService.php +++ b/lib/Service/Install/InstallService.php @@ -499,7 +499,10 @@ public function installJSignPdf(?bool $async = false): void { */ private function saveJsignPdfHome(): void { $home = $this->appConfig->getValueString(Application::APP_ID, 'jsignpdf_home'); - if ($home && preg_match('/libresign\/jsignpdf_home/', $home)) { + if ($home + && preg_match('/libresign\/jsignpdf_home/', $home) + && is_dir($home) + ) { return; } $libresignFolder = $this->appData->getFolder('/');