mirror of
https://github.com/YunoHost-Apps/jellyfin_ynh.git
synced 2024-09-03 19:26:29 +02:00
Fix change_url for v10.7
This commit is contained in:
parent
4512bfbaed
commit
9a3142a0ec
1 changed files with 3 additions and 3 deletions
|
@ -112,10 +112,10 @@ fi
|
|||
if [ $change_path -eq 1 ]
|
||||
then
|
||||
# If somehow <BaseUrl /> was not replaced during install
|
||||
if grep -q "<BaseUrl />" "/etc/jellyfin/system.xml"; then
|
||||
ynh_replace_string --match_string="<BaseUrl />" --replace_string="<BaseUrl>$new_path</BaseUrl>" --target_file="/etc/jellyfin/system.xml"
|
||||
if grep -q "<BaseUrl />" "/etc/jellyfin/network.xml"; then
|
||||
ynh_replace_string --match_string="<BaseUrl />" --replace_string="<BaseUrl>$new_path</BaseUrl>" --target_file="/etc/jellyfin/network.xml"
|
||||
else
|
||||
ynh_replace_string --match_string="<BaseUrl>$old_path</BaseUrl>" --replace_string="<BaseUrl>$new_path</BaseUrl>" --target_file="/etc/jellyfin/system.xml"
|
||||
ynh_replace_string --match_string="<BaseUrl>$old_path</BaseUrl>" --replace_string="<BaseUrl>$new_path</BaseUrl>" --target_file="/etc/jellyfin/network.xml"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue