From ba3004f28e5f306f00c12f55615bc04080086c51 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sun, 14 Aug 2022 23:18:12 +0200 Subject: [PATCH] Removing hook --- conf/mysql_hook_regen_conf | 10 ---------- scripts/install | 8 -------- scripts/upgrade | 11 +++-------- 3 files changed, 3 insertions(+), 26 deletions(-) delete mode 100644 conf/mysql_hook_regen_conf 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 #=================================================