mirror of
https://github.com/YunoHost-Apps/calibreweb_ynh.git
synced 2024-09-03 18:16:20 +02:00
Update logrotate configuration
This commit is contained in:
parent
8a95c527ff
commit
656e6aee86
3 changed files with 6 additions and 3 deletions
|
@ -6,7 +6,7 @@
|
|||
"en": "Browsing, reading and downloading eBooks using a Calibre database",
|
||||
"fr": "Explorer, lire et télécharger des eBooks à partir d'une base de données Calibre"
|
||||
},
|
||||
"version": "0.96.19~ynh4",
|
||||
"version": "0.96.19~ynh5",
|
||||
"url": "https://github.com/janeczku/calibre-web",
|
||||
"upstream": {
|
||||
"version": "0.6.19",
|
||||
|
|
|
@ -184,7 +184,8 @@ ynh_app_setting_set $app calibre_dir $calibre_dir
|
|||
#=================================================
|
||||
|
||||
# Use logrotate to manage application logfile(s)
|
||||
ynh_use_logrotate
|
||||
ynh_use_logrotate --logfile="/var/log/$app/$app.log"
|
||||
ynh_use_logrotate --logfile="/var/log/$app/$app-access.log"
|
||||
chown -R $app:$app /var/log/$app
|
||||
|
||||
|
||||
|
|
|
@ -249,7 +249,9 @@ ynh_replace_string --match_string="<policy domain="coder" rights="none" pattern=
|
|||
|
||||
# Use logrotate to manage app-specific logfile(s)
|
||||
ynh_script_progression --message="Upgrading logrotate configuration..." --weight=1
|
||||
ynh_use_logrotate --non-append
|
||||
ynh_use_logrotate --logfile="/var/log/$app/$app.log" --nonappend
|
||||
ynh_use_logrotate --logfile="/var/log/$app/$app-access.log" --nonappend
|
||||
|
||||
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue