forked from coop-cloud/mediawiki
Clean up php composer installation
This commit is contained in:
parent
33e70d62a4
commit
9820952cbc
|
@ -6,17 +6,13 @@ init_db() {
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
if ! type mysql > /dev/null 2>&1; then
|
if ! type mysql > /dev/null 2>&1; then
|
||||||
apt update && apt install -y \
|
apt update && apt install -y mariadb-client
|
||||||
curl \
|
fi
|
||||||
git \
|
|
||||||
mariadb-client \
|
|
||||||
php-cli \
|
|
||||||
unzip
|
|
||||||
|
|
||||||
curl -sS https://getcomposer.org/installer -o composer-setup.php
|
if ! type composer > /dev/null 2>&1; then
|
||||||
export HASH="a69df12e86a0a18fbedfc91a33d5f9acc5cf939576e0258326074fc1b2ee1aea"
|
apt update && apt install -y curl git unzip
|
||||||
php -r "if (hash_file('SHA384', 'composer-setup.php') === '$HASH') { echo 'Composer installer verified'; } else { echo 'Composer installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
|
curl -sS https://getcomposer.org/installer -o /tmp/composer-setup.php
|
||||||
php composer-setup.php --install-dir=/usr/local/bin --filename=composer --version=1.10.15
|
php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer --version=1.10.15
|
||||||
composer -V
|
composer -V
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue