Skip to content
Snippets Groups Projects
Commit f4bdefbc authored by Guillaume Heurtier's avatar Guillaume Heurtier
Browse files

FEAT #14242 TIME 0:10 fix logs in only office conversion script again

parent 129021b1
No related branches found
No related tags found
No related merge requests found
...@@ -131,8 +131,9 @@ class ConvertPdfScript ...@@ -131,8 +131,9 @@ class ConvertPdfScript
'eventId' => "{$converted['errors']}, document : {$fullFilename}" 'eventId' => "{$converted['errors']}, document : {$fullFilename}"
]); ]);
} }
$converted = empty($converted['errors']);
} }
if (!empty($converted['errors'])){ if (!$converted){
ConvertPdfController::addBom($fullFilename); ConvertPdfController::addBom($fullFilename);
$command = "timeout 30 unoconv -f pdf " . escapeshellarg($fullFilename); $command = "timeout 30 unoconv -f pdf " . escapeshellarg($fullFilename);
exec('export HOME=' . $tmpPath . ' && '.$command, $output, $return); exec('export HOME=' . $tmpPath . ' && '.$command, $output, $return);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment