1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/civicrm_drupal7_ynh.git synced 2024-09-03 18:16:19 +02:00

Update upgrade

This commit is contained in:
yalh76 2019-05-10 01:32:04 +02:00
parent 8266a51902
commit 48ba882323

View file

@ -111,6 +111,15 @@ ynh_add_fpm_config --phpversion="7.2"
#=================================================
# SPECIFIC UPGRADE
#=================================================
# UPDATE thread_stack
#=================================================
ynh_print_info --message="Updating thread_stack..."
ynh_replace_string "thread_stack = 128K" "thread_stack = 192K" "/etc/mysql/my.cnf"
systemctl restart mysql
#=================================================
# UPDATE COMPOSER
#=================================================
@ -127,7 +136,7 @@ export PATH="$final_path/.composer/vendor/bin:$PATH"
sudo -u $app env PATH=$PATH drush @$app variable-set --exact maintenance_mode 1
sudo -u $app env PATH=$PATH drush @$app cache-clear all
sudo -u $app env PATH=$PATH drush @$app pm-update drupal
sudo -u $app env PATH=$PATH drush @$app pm-update -y drupal
sudo -u $app env PATH=$PATH drush @$app cache-clear all
sudo -u $app env PATH=$PATH drush @$app l10n-update-refresh
sudo -u $app env PATH=$PATH drush @$app l10n-update
@ -185,6 +194,13 @@ ynh_print_info --message="Reloading nginx web server..."
systemctl reload nginx
#=================================================
# RESTART CRON
#=================================================
ynh_print_info --message="Restarting cron..."
systemctl restart cron
#=================================================
# END OF SCRIPT
#=================================================