From 01f34021dc937a147be6e74f3002e0961d27fa06 Mon Sep 17 00:00:00 2001 From: Aleksandr Chebotov <47745270+al-cheb@users.noreply.github.com> Date: Wed, 13 Apr 2022 12:04:04 +0200 Subject: [PATCH] [Ubuntu] Remove hard-coded composer version (#5399) --- images/linux/scripts/installers/php.sh | 7 +------ images/linux/scripts/tests/Common.Tests.ps1 | 4 ---- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/images/linux/scripts/installers/php.sh b/images/linux/scripts/installers/php.sh index a2ebeeb2a..e230a3808 100644 --- a/images/linux/scripts/installers/php.sh +++ b/images/linux/scripts/installers/php.sh @@ -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');" diff --git a/images/linux/scripts/tests/Common.Tests.ps1 b/images/linux/scripts/tests/Common.Tests.ps1 index 783e122d4..ccd1efd04 100644 --- a/images/linux/scripts/tests/Common.Tests.ps1 +++ b/images/linux/scripts/tests/Common.Tests.ps1 @@ -20,10 +20,6 @@ Describe "PHP" { "composer --version" | Should -ReturnZeroExitCode } - It "Composer 2.2.9 on Ubuntu Server 18" -Skip:(-not (Test-IsUbuntu18)) { - composer --version | Should -Match "2.2.9" - } - It "Pear" { "pear" | Should -ReturnZeroExitCode }