]> _ Git - fluidbook_processfarm.git/commitdiff
wip #5220 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 7 Apr 2022 17:59:55 +0000 (19:59 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 7 Apr 2022 17:59:55 +0000 (19:59 +0200)
bin/installpackages

index cd6a88c9d25977dce4cbfa76e7817d9ecfa26e09..af56f440146537e37090fe5968b7a463baa486a0 100755 (executable)
@@ -2,6 +2,11 @@
 add-apt-repository -y ppa:ondrej/php
 #apt-get update
 apt-get install -y pdftk poppler-utils ghostscript autofs sshfs mupdf-tools php8.1
-php -r "copy('https://getcomposer.org/installer', '/tmp/composer-setup.php');"
-php /tmp/composer-setup.php
-php -r "unlink('/tmp/composer-setup.php');"
\ No newline at end of file
+
+if [ ! -f /usr/local/bin/composer ]
+then
+  php -r "copy('https://getcomposer.org/installer', '/tmp/composer-setup.php');"
+  php /tmp/composer-setup.php
+  php -r "unlink('/tmp/composer-setup.php');"
+  mv composer.phar /usr/local/bin/composer
+fi