Add support for php.ini customization and fix bugs

This commit is contained in:
Shivam Mathur
2019-09-18 07:40:09 +05:30
parent a398f54da4
commit e4a37d0f16
9 changed files with 112 additions and 34 deletions

View File

@ -4,8 +4,11 @@ if [ "$version" != "$1" ]; then
brew unlink php;
brew install php@$1;
brew link --force --overwrite php@$1;
else
sudo cp /etc/php.ini.default /etc/php.ini
fi
ini_file=$(php --ini | grep "Loaded Configuration" | sed -e "s|.*:s*||" | sed "s/ //g")
sudo chmod 777 $ini_file
curl -sS https://getcomposer.org/installer | php
chmod +x composer.phar
mv composer.phar /usr/local/bin/composer