[Ubuntu] Remove hard-coded composer version (#5399)

This commit is contained in:
Aleksandr Chebotov
2022-04-13 12:04:04 +02:00
committed by GitHub
parent 5da7f5bd60
commit 01f34021dc
2 changed files with 1 additions and 10 deletions

View File

@@ -86,12 +86,7 @@ apt-get install -y --no-install-recommends snmp
# Install composer
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === file_get_contents('https://composer.github.io/installer.sig')) { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
# Composer 2.3 increased the required PHP version to >=7.2.5 and thus stop supporting PHP 5.3.2 - 7.2.4
if isUbuntu18; then
php composer-setup.php --version=2.2.9
else
php composer-setup.php
fi
php composer-setup.php
sudo mv composer.phar /usr/bin/composer
php -r "unlink('composer-setup.php');"