From dff54ac880e4cda29ac3befe0fd3ea35e58426ac Mon Sep 17 00:00:00 2001 From: Duncan Sommerville Date: Wed, 1 Jul 2015 00:24:11 -0400 Subject: [PATCH] Add composer install to installer --- install | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/install b/install index f10078be1..0a6598ca8 100755 --- a/install +++ b/install @@ -312,6 +312,14 @@ else checkCommandExists "psql" 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 loudCmd "./build.sh"