From 817206228a415fe39a9aba364cd21e5fedd82f46 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 30 Aug 2022 23:27:00 +0200 Subject: [PATCH] Fix logrotate --- scripts/install | 6 +++--- scripts/restore | 6 +++--- scripts/upgrade | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/scripts/install b/scripts/install index 140ed0b..ffafbb2 100755 --- a/scripts/install +++ b/scripts/install @@ -218,9 +218,9 @@ set_permission #================================================= ynh_script_progression --message="Configuring log rotation..." -ynh_use_logrotate $final_path/horde --nonappend --specific_user www-data/horde -ynh_use_logrotate $final_path/horde/services --append --specific_user www-data/horde -ynh_use_logrotate $final_path/horde/services/portal --append --specific_user www-data/horde +ynh_use_logrotate --logfile="$final_path/horde" --nonappend --specific_user www-data/horde +ynh_use_logrotate --logfile="$final_path/horde/services" --specific_user www-data/horde +ynh_use_logrotate --logfile="$final_path/horde/services/portal" --specific_user www-data/horde #================================================= # SETUP SSOWAT diff --git a/scripts/restore b/scripts/restore index 19bdbdd..939e6a8 100755 --- a/scripts/restore +++ b/scripts/restore @@ -115,9 +115,9 @@ set_permission #================================================= ynh_script_progression --message="Restoring the logrotate configuration..." -ynh_use_logrotate $final_path/horde --nonappend --specific_user www-data/horde -ynh_use_logrotate $final_path/horde/services --append --specific_user www-data/horde -ynh_use_logrotate $final_path/horde/services/portal --append --specific_user www-data/horde +ynh_use_logrotate --logfile="$final_path/horde" --nonappend --specific_user www-data/horde +ynh_use_logrotate --logfile="$final_path/horde/services" --specific_user www-data/horde +ynh_use_logrotate --logfile="$final_path/horde/services/portal" --specific_user www-data/horde #================================================= # GENERIC FINALIZATION diff --git a/scripts/upgrade b/scripts/upgrade index 6ee3b41..84233a3 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -130,9 +130,9 @@ set_permission #================================================= ynh_script_progression --message="Upgrading logrotate configuration..." -ynh_use_logrotate $final_path/horde --nonappend --specific_user www-data/horde -ynh_use_logrotate $final_path/horde/services --append --specific_user www-data/horde -ynh_use_logrotate $final_path/horde/services/portal --append --specific_user www-data/horde +ynh_use_logrotate --logfile="$final_path/horde" --nonappend --specific_user www-data/horde +ynh_use_logrotate --logfile="$final_path/horde/services" --specific_user www-data/horde +ynh_use_logrotate --logfile="$final_path/horde/services/portal" --specific_user www-data/horde #================================================= # RELOAD NGINX