From d12b437674edb31813a782f3cec940a6dff63bea Mon Sep 17 00:00:00 2001 From: tituspijean Date: Sun, 14 Mar 2021 11:50:56 +0100 Subject: [PATCH] Make service restore paths not mandatory --- scripts/backup | 3 ++- scripts/restore | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/backup b/scripts/backup index 2b24fb0..59d6081 100644 --- a/scripts/backup +++ b/scripts/backup @@ -61,7 +61,8 @@ ynh_backup --src_path="/etc/logrotate.d/$app" # BACKUP SYSTEMD #================================================= -ynh_backup --src_path="/lib/systemd/system/jellyfin.service" +ynh_backup --src_path="/lib/systemd/system/jellyfin.service" --not_mandatory +ynh_backup --src_path="/usr/lib/systemd/system/jellyfin.service" --not_mandatory ynh_backup --src_path="/etc/systemd/system/jellyfin.service.d" #================================================= diff --git a/scripts/restore b/scripts/restore index c28c805..bcb597f 100644 --- a/scripts/restore +++ b/scripts/restore @@ -91,7 +91,8 @@ ynh_install_extra_app_dependencies --repo="https://repo.jellyfin.org/debian $( l #================================================= ynh_script_progression --message="Restoring the systemd configuration..." --weight=2 -ynh_restore_file --origin_path="/lib/systemd/system/jellyfin.service" 2>/dev/null +ynh_restore_file --origin_path="/lib/systemd/system/jellyfin.service" --not_mandatory 2>/dev/null +ynh_restore_file --origin_path="/usr/lib/systemd/system/jellyfin.service" --not_mandatory 2>/dev/null ynh_restore_file --origin_path="/etc/systemd/system/jellyfin.service.d" 2>/dev/null systemctl enable $app.service --quiet