svg
This commit is contained in:
@ -15,6 +15,21 @@ websocket_portinterne=$(CreoleGet ninegate_websocket_portinterne non)
|
||||
www_dir="$container_path_web/var/www/html"
|
||||
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
|
||||
else
|
||||
version70=`php -r 'echo version_compare(phpversion(), "7.0.0", ">=");'`
|
||||
if [[ "$version70" == "1" ]]
|
||||
then
|
||||
cp -rf /var/www/html/ninegate/scripts/php70/composer.json /var/www/html/ninegate/composer.json
|
||||
cp -rf /var/www/html/ninegate/scripts/php70/composer.lock /var/www/html/ninegate/composer.lock
|
||||
fi
|
||||
fi
|
||||
|
||||
# Installation des dépendances composer
|
||||
composer install
|
||||
|
||||
|
Reference in New Issue
Block a user