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

Fix upgrade script concerning no subpath

This commit is contained in:
Sylvain CECCHETTO 2021-09-30 18:26:56 +02:00
parent 208751bcb9
commit 984fa119b7

View file

@ -108,7 +108,12 @@ then
ynh_script_progression --message="Restore/update configuration files..." --weight=1
# Copy and modify /etc/default/tvheadend
ynh_add_config --template="tvheadend" --destination="/etc/default/tvheadend"
if [ "$path_url" = "/" ]
then
ynh_add_config --template="tvheadend_no_subpath" --destination="/etc/default/tvheadend"
else
ynh_add_config --template="tvheadend" --destination="/etc/default/tvheadend"
fi
# Copy and modify /home/hts/.hts/tvheadend/superuser
ynh_add_config --template="superuser" --destination="${conf_dir}/superuser"