Browse Source

update php install.sh to work with updated composer install process

Lita Gratrix 10 years ago
parent
commit
1d37b85026
1 changed files with 4 additions and 4 deletions
  1. 4 4
      frameworks/PHP/php/install.sh

+ 4 - 4
frameworks/PHP/php/install.sh

@@ -1,11 +1,11 @@
 #!/bin/bash
 #!/bin/bash
-
-fw_depends php nginx composer
-
 export PHP_HOME=${IROOT}/php-5.5.17
 export PHP_HOME=${IROOT}/php-5.5.17
+export COMPOSER_HOME=${IROOT}/php-composer
 export PHP_FPM=$PHP_HOME/sbin/php-fpm
 export PHP_FPM=$PHP_HOME/sbin/php-fpm
 export NGINX_HOME=${IROOT}/nginx
 export NGINX_HOME=${IROOT}/nginx
 
 
-${PHP_HOME}/bin/php $IROOT/composer.phar install \
+fw_depends php nginx composer
+
+${PHP_HOME}/bin/php $COMPOSER_HOME/composer.phar install \
   --no-interaction --working-dir $TROOT \
   --no-interaction --working-dir $TROOT \
   --no-progress --optimize-autoloader 
   --no-progress --optimize-autoloader