Browse Source

remove bash_profile.sh and update install.sh for phreeze

Lita Gratrix 10 years ago
parent
commit
47fcb2bead
2 changed files with 3 additions and 6 deletions
  1. 2 3
      frameworks/PHP/phreeze/install.sh
  2. 1 3
      frameworks/PHP/phreeze/setup.sh

+ 2 - 3
frameworks/PHP/phreeze/install.sh

@@ -1,13 +1,12 @@
 #!/bin/bash
 #!/bin/bash
 
 
 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
 
 
 fw_depends php nginx composer
 fw_depends php nginx composer
 
 
-${PHP_HOME}/bin/php $IROOT/composer.phar install \
+${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 

+ 1 - 3
frameworks/PHP/phreeze/setup.sh

@@ -1,9 +1,7 @@
 #!/bin/bash
 #!/bin/bash
-
 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
 
 
 sed -i 's|localhost:3306|'"${DBHOST}"':3306|g' index.php
 sed -i 's|localhost:3306|'"${DBHOST}"':3306|g' index.php