mirror of
https://github.com/YunoHost-Apps/dendrite_ynh.git
synced 2024-09-03 18:25:58 +02:00
Try to catch the rotated logs in logrotate
This commit is contained in:
parent
a1d2b77eb9
commit
04a98cffba
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue