From 04a98cffbab4f75c3627e1204ae689c93da09ad9 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Sun, 17 Jan 2021 22:59:52 +0100 Subject: [PATCH] Try to catch the rotated logs in logrotate --- scripts/install | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/install b/scripts/install index e52eeb4..44b5c81 100644 --- a/scripts/install +++ b/scripts/install @@ -183,6 +183,9 @@ ynh_script_progression --message="Configuring log rotation..." --weight=1 # Use logrotate to manage application logfile(s) ynh_use_logrotate +# HACKY: Match the weirdly renamed rotated logs. +# Looking at you, matrix-org/dugong library +ynh_replace_string --match_string="/var/log/$app/*.log" --replace_string="/var/log/$app/*.log.????-??-??" --target_file="/etc/logrotate.d/$app" #================================================= # INTEGRATE SERVICE IN YUNOHOST