From 0f92a02dd62e0d782dd9ca57d6ad0e169bf4e982 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Tue, 25 May 2021 13:33:48 +0200 Subject: [PATCH] Fix config_path and final_path --- scripts/upgrade | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 38bfbce..9373063 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -40,10 +40,11 @@ if [[ ! "$architecture" =~ ^(amd64|arm64|armhf)$ ]]; then fi # If path keys do not exist, create them -if [ -z "$config_path" ]; then - config_path=/var/lib/jellyfin +# If config_path is mixed up with final_path, fix them +if [ -z "$config_path" ] || [[ $config_path = "/var/lib/jellyfin" ]]; then + config_path=/etc/jellyfin + final_path=/var/lib/jellyfin ynh_app_setting_set --app=$app --key=config_path --value=$config_path - final_path=/etc/jellyfin ynh_app_setting_set --app=$app --key=final_path --value=$final_path fi