From 7f7beb26790c2372a324a2c9018081645c7b5428 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 24 Aug 2021 17:26:24 +0200 Subject: [PATCH] Fix --- scripts/backup | 8 -------- scripts/remove | 8 -------- scripts/restore | 7 ------- scripts/upgrade | 10 ---------- 4 files changed, 33 deletions(-) diff --git a/scripts/backup b/scripts/backup index d8e7413..94ba2ab 100755 --- a/scripts/backup +++ b/scripts/backup @@ -56,14 +56,6 @@ ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" ynh_backup --src_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" -#================================================= -# SPECIFIC BACKUP -#================================================= -# BACKUP LOGROTATE -#================================================= - -ynh_backup --src_path="/etc/logrotate.d/$app" - #================================================= # BACKUP THE MYSQL DATABASE #================================================= diff --git a/scripts/remove b/scripts/remove index 01189db..50e6912 100755 --- a/scripts/remove +++ b/scripts/remove @@ -29,14 +29,6 @@ ynh_script_progression --message="Removing the MySQL database..." --weight=1 # Remove a database if it exists, along with the associated user ynh_mysql_remove_db --db_user=$db_user --db_name=$db_name -#================================================= -# REMOVE LOGROTATE CONFIGURATION -#================================================= -ynh_script_progression --message="Removing logrotate configuration..." --weight=1 - -# Remove the app-specific logrotate config -ynh_remove_logrotate - #================================================= # REMOVE APP MAIN DIR #================================================= diff --git a/scripts/restore b/scripts/restore index 18daf2b..f21832f 100755 --- a/scripts/restore +++ b/scripts/restore @@ -89,13 +89,6 @@ db_pwd=$(ynh_app_setting_get --app=$app --key=mysqlpwd) ynh_mysql_setup_db --db_user=$db_user --db_name=$db_name --db_pwd=$db_pwd ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./db.sql -#================================================= -# RESTORE THE LOGROTATE CONFIGURATION -#================================================= -ynh_script_progression --message="Restoring the logrotate configuration..." --weight=1 - -ynh_restore_file --origin_path="/etc/logrotate.d/$app" - #================================================= # GENERIC FINALIZATION #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 1613d10..92aa0f9 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -102,16 +102,6 @@ ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=2 # Create a dedicated PHP-FPM config ynh_add_fpm_config -#================================================= -# GENERIC FINALIZATION -#================================================= -# SETUP LOGROTATE -#================================================= -ynh_script_progression --message="Upgrading logrotate configuration..." --weight=1 - -# Use logrotate to manage app-specific logfile(s) -ynh_use_logrotate --non-append - #================================================= # RELOAD NGINX #=================================================