1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/tvheadend_ynh.git synced 2024-10-01 13:34:50 +02:00

fix restore

This commit is contained in:
Salamandar 2024-03-08 20:11:29 +01:00
parent 9c2f139657
commit 3b4f27d0b0

View file

@ -19,15 +19,6 @@ ynh_restore_file --origin_path="$install_dir"
chown -R "$app:www-data" "$install_dir"
#=================================================
# RESTORE THE DATA DIRECTORY
#=================================================
ynh_script_progression --message="Restoring the data directory..." --weight=1
ynh_restore_file --origin_path="$data_dir" --not_mandatory
chown -R "hts:video" "$data_dir"
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
@ -40,6 +31,15 @@ _install_tvheadend_package
# we stop it before the configuration
ynh_systemd_action --service_name="$app" --action="stop"
#=================================================
# RESTORE THE DATA DIRECTORY
#=================================================
ynh_script_progression --message="Restoring the data directory..." --weight=1
ynh_restore_file --origin_path="$data_dir" --not_mandatory
chown -R "hts:video" "$data_dir"
#=================================================
# RESTORE TVHEADEND CONFIG FILES
#=================================================