From f91be3b8c778ff1f35de5bc39132818890b4839b Mon Sep 17 00:00:00 2001 From: isUnknown Date: Mon, 4 May 2026 10:54:24 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20:=20timeout=20ne=20comprend=20pas=20TMPDI?= =?UTF-8?q?R=3D=E2=80=A6=20comme=20env=20var,=20utiliser=20env?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Avec `timeout 360 TMPDIR=… pagedjs-cli`, timeout interprète TMPDIR=… comme le nom de la commande et échoue avec 'No such file or directory'. Préfixer avec `env` règle le problème. Co-Authored-By: Claude Sonnet 4.6 --- src/Services/PdfGenerator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);