diff --git a/src/ninegate-1.0/scripts/ninegate-postservice-01.sh b/src/ninegate-1.0/scripts/ninegate-postservice-01.sh index dbbaaf8b..5c9f5eda 100755 --- a/src/ninegate-1.0/scripts/ninegate-postservice-01.sh +++ b/src/ninegate-1.0/scripts/ninegate-postservice-01.sh @@ -17,10 +17,10 @@ eportail_dir="$www_dir/eportail" # Récuper les composer associés à la version de php installé version72=`php -r 'echo version_compare(phpversion(), "7.2.0", ">=");'` -echo $version72 if [[ "$version72" == "1" ]] then - echo 72 + cp -rf /var/www/html/ninegate/scripts/php72/composer.json /var/www/html/ninegate/composer.json + cp -rf /var/www/html/ninegate/scripts/php72/composer.lock /var/www/html/ninegate/composer.lock else version70=`php -r 'echo version_compare(phpversion(), "7.0.0", ">=");'` if [[ "$version70" == "1" ]] @@ -37,7 +37,7 @@ composer install ./perm.sh www-data # Nettoyage du cache -rm /var/www/html/ninegate/var/cache/* -rf +rm /var/www/html/ninegate/var/cache -rf php bin/console cache:clear --env=prod --no-debug # Migration si nécessaire du schéma de la base