From 48ba88232338694dfb85a3419a32b18d46365b32 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Fri, 10 May 2019 01:32:04 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index eb11fdd..5e7852a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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 #=================================================