1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/jellyfin_ynh.git synced 2024-09-03 19:26:29 +02:00

Fix : restore was forgetting about logrotate

This commit is contained in:
Salamandar 2022-02-20 10:29:11 +01:00 committed by Salamandar
parent d8347ddccd
commit 56417ce7ce
2 changed files with 12 additions and 0 deletions

View file

@ -168,6 +168,13 @@ else
yunohost service add $app --description="Jellyfin media center" --needs_exposed_ports ${needed_ports[@]}
fi
#=================================================
# RESTORE THE LOGROTATE CONFIGURATION
#=================================================
ynh_script_progression --message="Restoring the logrotate configuration..." --time --weight=1
ynh_restore_file --origin_path="/etc/logrotate.d/$app"
#=================================================
# RESTORE USER RIGHTS
#=================================================

View file

@ -72,6 +72,11 @@ if [ -z "$discovery" ]; then
ynh_app_setting_set --app=$app --key=discovery --value=$discovery
fi
if [ ! -f "/etc/logrotate.d/$app" ]; then
# Fix possibly missing file due to buggy restore:
ynh_use_logrotate
fi
#=================================================
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
#=================================================