1
0
Fork 0
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:
Krakinou 2022-11-19 13:50:36 +01:00
parent 8a95c527ff
commit 656e6aee86
3 changed files with 6 additions and 3 deletions

View file

@ -6,7 +6,7 @@
"en": "Browsing, reading and downloading eBooks using a Calibre database", "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" "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", "url": "https://github.com/janeczku/calibre-web",
"upstream": { "upstream": {
"version": "0.6.19", "version": "0.6.19",

View file

@ -184,7 +184,8 @@ ynh_app_setting_set $app calibre_dir $calibre_dir
#================================================= #=================================================
# Use logrotate to manage application logfile(s) # 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 chown -R $app:$app /var/log/$app

View file

@ -249,7 +249,9 @@ ynh_replace_string --match_string="<policy domain="coder" rights="none" pattern=
# Use logrotate to manage app-specific logfile(s) # Use logrotate to manage app-specific logfile(s)
ynh_script_progression --message="Upgrading logrotate configuration..." --weight=1 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
#================================================= #=================================================