From 58e8339ca355446116fafd8ac8e97c8ace9e4b8f Mon Sep 17 00:00:00 2001 From: tituspijean Date: Tue, 10 Nov 2020 14:50:59 +0100 Subject: [PATCH] Fix change_url Simpler is better --- scripts/change_url | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index 845c04d..6abc645 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -111,8 +111,8 @@ fi # Change the path in system.xml config file if [ $change_path -eq 1 ] then - # If the Startup Wizard was not complete, was reverted back to default when stopping the service - if grep -q "false" "/etc/jellyfin/system.xml"; then + # If somehow was not replaced during install + if grep -q "" "/etc/jellyfin/system.xml"; then ynh_replace_string --match_string="" --replace_string="$new_path" --target_file="/etc/jellyfin/system.xml" else ynh_replace_string --match_string="$old_path" --replace_string="$new_path" --target_file="/etc/jellyfin/system.xml"