]> _ Git - fluidbook_processfarm.git/commitdiff
wip #6150 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 20 Jul 2023 10:08:21 +0000 (12:08 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 20 Jul 2023 10:08:21 +0000 (12:08 +0200)
app/bin/mount
app/process.php

index 1607430c277d4fe60deffc23146ae42ed4c86fbd..63d5de457161a685d8231d356120b0ba867ba8d2 100755 (executable)
@@ -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
     :
index 74b74849fbc92a6071c20fc5c6e2da551e76ef7f..1e212b453e7d65b5ffe0cfcfc4fcc91b5357ee97 100644 (file)
@@ -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']);
 }