1
0
Fork 0
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:
tituspijean 2021-01-17 22:59:52 +01:00
parent a1d2b77eb9
commit 04a98cffba

View file

@ -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