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('/');