This commit is contained in:
afornerot 2019-11-25 14:37:41 +01:00
parent 0b1398f8b5
commit e83b354cbb
1 changed files with 3 additions and 3 deletions

View File

@ -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