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

Make service restore paths not mandatory

This commit is contained in:
tituspijean 2021-03-14 11:50:56 +01:00
parent 2e92159822
commit d12b437674
2 changed files with 4 additions and 2 deletions

View file

@ -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"
#=================================================

View file

@ -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