From: Vincent Vanwaelscappel Date: Thu, 7 Apr 2022 17:59:55 +0000 (+0200) Subject: wip #5220 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=4d00004872f5469f68500cff61df7898ecde448e;p=fluidbook_processfarm.git wip #5220 @1 --- diff --git a/bin/installpackages b/bin/installpackages index cd6a88c..af56f44 100755 --- a/bin/installpackages +++ b/bin/installpackages @@ -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