From 4d00004872f5469f68500cff61df7898ecde448e Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 7 Apr 2022 19:59:55 +0200 Subject: [PATCH] wip #5220 @1 --- bin/installpackages | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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 -- 2.39.5