Move composer installation after php installation
This commit is contained in:
@ -1,11 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# install composer
|
|
||||||
curl -sSL https://github.com/composer/composer/releases/download/2.0.8/composer.phar > /usr/bin/composer
|
|
||||||
chmod +x /usr/bin/composer
|
|
||||||
composer self-update
|
|
||||||
|
|
||||||
# install nvm
|
# install nvm
|
||||||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
|
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
|
||||||
export NVM_DIR="$HOME/.nvm"
|
export NVM_DIR="$HOME/.nvm"
|
||||||
@ -1482,3 +1477,8 @@ git reset --hard
|
|||||||
ln -fs /usr/bin/php8.0 /usr/bin/php
|
ln -fs /usr/bin/php8.0 /usr/bin/php
|
||||||
cd ..
|
cd ..
|
||||||
ldconfig
|
ldconfig
|
||||||
|
|
||||||
|
# install composer
|
||||||
|
curl -sSL https://github.com/composer/composer/releases/download/2.0.8/composer.phar > /usr/bin/composer
|
||||||
|
chmod +x /usr/bin/composer
|
||||||
|
composer self-update
|
||||||
|
Reference in New Issue
Block a user