diff --git a/src/Services/PdfGenerator.php b/src/Services/PdfGenerator.php index 7aeea17..5482d97 100644 --- a/src/Services/PdfGenerator.php +++ b/src/Services/PdfGenerator.php @@ -92,7 +92,7 @@ class PdfGenerator $maxDuration = $this->config['job_max_duration'] ?? 360; $cmd = 'timeout ' . (int)$maxDuration . ' '; - $cmd .= 'TMPDIR=' . escapeshellarg($this->config['tmp_dir']) . ' '; + $cmd .= 'env TMPDIR=' . escapeshellarg($this->config['tmp_dir']) . ' '; $cmd .= escapeshellcmd($this->config['pagedjs_bin']); $cmd .= ' ' . escapeshellarg($url); $cmd .= ' -o ' . escapeshellarg($pdfFile);