Add composer install to installer

This commit is contained in:
Duncan Sommerville 2015-07-01 00:24:11 -04:00
parent 3c33cfd8b2
commit dff54ac880
1 changed files with 8 additions and 0 deletions

View File

@ -312,6 +312,14 @@ else
checkCommandExists "psql" checkCommandExists "psql"
fi fi
# Check if composer exists and install if it doesn't
eval hash "composer" 2>/dev/null
commandFound=$?
if [[ ! ${commandFound} -eq 0 ]]; then
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
fi
# Run composer (install PHP dependencies) and create a VERSION file # Run composer (install PHP dependencies) and create a VERSION file
loudCmd "./build.sh" loudCmd "./build.sh"