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:
parent
2e92159822
commit
d12b437674
2 changed files with 4 additions and 2 deletions
|
@ -61,7 +61,8 @@ ynh_backup --src_path="/etc/logrotate.d/$app"
|
||||||
# BACKUP SYSTEMD
|
# 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"
|
ynh_backup --src_path="/etc/systemd/system/jellyfin.service.d"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -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_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
|
ynh_restore_file --origin_path="/etc/systemd/system/jellyfin.service.d" 2>/dev/null
|
||||||
systemctl enable $app.service --quiet
|
systemctl enable $app.service --quiet
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue