From: Vincent Vanwaelscappel Date: Thu, 20 Jul 2023 10:08:21 +0000 (+0200) Subject: wip #6150 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=a4140d66483dc417a58b8326be3a7f1542d7c310;p=fluidbook_processfarm.git wip #6150 @0.25 --- diff --git a/app/bin/mount b/app/bin/mount index 1607430..63d5de4 100755 --- a/app/bin/mount +++ b/app/bin/mount @@ -20,6 +20,13 @@ else sshfs -o reconnect,ServerAliveInterval=15,ServerAliveCountMax=3 -o uid=33 -o gid=33 -o allow_other root@godzilla.cubedesigners.com:/data/fluidbook/docs /application/protected/fluidbookpublication/docs fi +mkdir -p /application/protected/fluidbookpublication/cache/pdffiles +if mountpoint -q "/application/protected/fluidbookpublication/cache/pdffiles"; then + : +else + sshfs -o reconnect,ServerAliveInterval=15,ServerAliveCountMax=3 -p 58745 -o uid=33 -o gid=33 -o allow_other toolbox@toolbox.fluidbook.com:/application/protected/fluidbookpublication/cache/pdffiles /application/protected/fluidbookpublication/cache/pdffiles +fi + mkdir -p /application/usstorage if mountpoint -q "/application/usstorage"; then : diff --git a/app/process.php b/app/process.php index 74b7484..1e212b4 100644 --- a/app/process.php +++ b/app/process.php @@ -16,7 +16,6 @@ if (!isset($_POST['pdf'])) { } else { $p = new ProcessFile($_POST['out'], $_POST['page'], $_POST['resolutionRatio'], $_POST['mobileRatio'], $_POST['format'], $_POST['resolution'], (int)$_POST['quality'], $_POST['withGraphics'], $_POST['withText'], $_POST['version'], $_POST['force']); } - } else { $p = new ProcessToolboxPDFFile($_POST['pdf'], $_POST['out'], $_POST['page'], $_POST['format'], $_POST['resolution'], (int)$_POST['quality'], $_POST['withGraphics'], $_POST['withText'], $_POST['version'], $_POST['force']); }