diff --git a/conf/mysql_hook_regen_conf b/conf/mysql_hook_regen_conf deleted file mode 100644 index da33537..0000000 --- a/conf/mysql_hook_regen_conf +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -action=$1 -pending_dir=$4 -mysqlconf="${pending_dir}/../mysql/etc/mysql/my.cnf" - -[[ "$action" == "pre" ]] || exit 0 -[[ -e "$mysqlconf" ]] || exit 0 - -sed --in-place "s@thread_stack = 128K@thread_stack = 192K@g" "${mysqlconf}" \ No newline at end of file diff --git a/scripts/install b/scripts/install index d0b5e33..f5e663a 100644 --- a/scripts/install +++ b/scripts/install @@ -115,14 +115,6 @@ ynh_add_fpm_config --usage=low --footprint=low #================================================= # SPECIFIC SETUP -#================================================= -# UPGRADE THREAD_STACK -#================================================= -ynh_script_progression --message="Upgrading thread_stack..." - -cp -R ../conf/mysql_hook_regen_conf /usr/share/yunohost/hooks/conf_regen/34-mysql_$app -yunohost tools regen-conf mysql --force - #================================================= # CREATE DRUSH ALIAS #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 563b2ee..96b7310 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -59,6 +59,9 @@ if ynh_legacy_permissions_exists; then ynh_app_setting_delete --app=$app --key=is_public fi +ynh_secure_remove --file="/usr/share/yunohost/hooks/conf_regen/34-mysql_$app" +yunohost tools regen-conf mysql --force + #================================================= # CREATE DEDICATED USER #================================================= @@ -110,14 +113,6 @@ ynh_add_fpm_config --usage=low --footprint=low #================================================= # SPECIFIC UPGRADE -#================================================= -# UPGRADE THREAD_STACK -#================================================= -ynh_script_progression --message="Upgrading thread_stack..." - -cp -R ../conf/mysql_hook_regen_conf /usr/share/yunohost/hooks/conf_regen/34-mysql_$app -yunohost tools regen-conf mysql --force - #================================================= # SETUP THE CRON FILE #=================================================