svg
This commit is contained in:
parent
0b1398f8b5
commit
e83b354cbb
|
@ -17,10 +17,10 @@ eportail_dir="$www_dir/eportail"
|
||||||
|
|
||||||
# Récuper les composer associés à la version de php installé
|
# Récuper les composer associés à la version de php installé
|
||||||
version72=`php -r 'echo version_compare(phpversion(), "7.2.0", ">=");'`
|
version72=`php -r 'echo version_compare(phpversion(), "7.2.0", ">=");'`
|
||||||
echo $version72
|
|
||||||
if [[ "$version72" == "1" ]]
|
if [[ "$version72" == "1" ]]
|
||||||
then
|
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
|
else
|
||||||
version70=`php -r 'echo version_compare(phpversion(), "7.0.0", ">=");'`
|
version70=`php -r 'echo version_compare(phpversion(), "7.0.0", ">=");'`
|
||||||
if [[ "$version70" == "1" ]]
|
if [[ "$version70" == "1" ]]
|
||||||
|
@ -37,7 +37,7 @@ composer install
|
||||||
./perm.sh www-data
|
./perm.sh www-data
|
||||||
|
|
||||||
# Nettoyage du cache
|
# 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
|
php bin/console cache:clear --env=prod --no-debug
|
||||||
|
|
||||||
# Migration si nécessaire du schéma de la base
|
# Migration si nécessaire du schéma de la base
|
||||||
|
|
Loading…
Reference in New Issue