1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/drupal_ynh.git synced 2024-09-03 18:35:53 +02:00
This commit is contained in:
yalh76 2019-06-01 06:59:40 +02:00
parent 81713c795e
commit 5ab215e2c3

View file

@ -118,18 +118,18 @@ ynh_print_info --message="Adding swap..."
ynh_add_swap --size=512 ynh_add_swap --size=512
#================================================= #=================================================
# UPDATE COMPOSER # UPGRADE COMPOSER
#================================================= #=================================================
ynh_print_info --message="Updating Composer..." ynh_print_info --message="Upgrading Composer..."
update-alternatives --set php /usr/bin/php7.2 update-alternatives --set php /usr/bin/php7.2
ynh_install_composer --phpversion="7.2" --workdir="$final_path" ynh_install_composer --phpversion="7.2" --workdir="$final_path"
update-alternatives --set php /usr/bin/php7.0 update-alternatives --set php /usr/bin/php7.0
#================================================= #=================================================
# UPDATE DRUPAL # UPGRADE DRUPAL
#================================================= #=================================================
ynh_print_info --message="Updating Drupal..." ynh_print_info --message="Upgrading Drupal..."
ynh_backup_if_checksum_is_different --file="$final_path/$app/sites/default/settings.php" ynh_backup_if_checksum_is_different --file="$final_path/$app/sites/default/settings.php"
export PATH="$final_path/vendor/bin:$PATH" export PATH="$final_path/vendor/bin:$PATH"