1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wallabag2_ynh.git synced 2024-10-01 13:35:06 +02:00

Setup logrotate

This commit is contained in:
lapineige 2022-07-27 07:28:24 +02:00 committed by GitHub
parent fbc698d22c
commit d40a703521
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -158,6 +158,16 @@ ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_fil
set_permissions
#=================================================
# SETUP LOGROTATE
#=================================================
ynh_script_progression --message="Configuring log rotation..."
# Use logrotate to manage application logfile(s)
touch "$final_path/var/logs/prod.log"
ynh_use_logrotate "$final_path/var/logs/prod.log"
chown $app:www-data "$final_path/var/logs/prod.log"
#=================================================
# SETUP FAIL2BAN
#=================================================