2021-04-05 12:38:07 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
PHP_VERSION=`php -r 'echo PHP_MAJOR_VERSION.PHP_MINOR_VERSION;'`
|
|
|
|
|
2021-06-14 14:31:33 +00:00
|
|
|
echo "Actual environment: ${ENVIRONMENT}"
|
2021-04-05 12:38:07 +00:00
|
|
|
|
2021-04-05 14:01:36 +00:00
|
|
|
if [ -f /usr/local/etc/php/php.ini-$ENVIRONMENT ]; then
|
|
|
|
mv /usr/local/etc/php/php.ini-$ENVIRONMENT /usr/local/etc/php/php.ini
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2021-10-13 16:40:48 +00:00
|
|
|
if [ $PHP_VERSION == '72' ]; then
|
2021-04-05 12:38:07 +00:00
|
|
|
wget -O /bin/composer https://getcomposer.org/composer-1.phar
|
|
|
|
else
|
|
|
|
wget -O /bin/composer https://getcomposer.org/composer.phar
|
|
|
|
fi
|
|
|
|
|
|
|
|
chmod a+x /bin/composer
|