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:
parent
fbc698d22c
commit
d40a703521
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue