diff --git a/scripts/restore b/scripts/restore index e6a7127..57c95b0 100644 --- a/scripts/restore +++ b/scripts/restore @@ -41,8 +41,8 @@ ynh_webpath_available --domain="$domain" --path_url="$path_url" \ || ynh_die --message="Path not available: ${domain}${path_url}" test ! -d "$final_path" \ || ynh_die --message="There is already a directory: $final_path " - test ! -d "/var/lib/jellyfin" \ - 43 || ynh_die --message="There is already a directory: /var/lib/jellyfin " +test ! -d "/var/lib/jellyfin" \ + || ynh_die --message="There is already a directory: /var/lib/jellyfin " #================================================= # STANDARD RESTORATION STEPS diff --git a/scripts/upgrade b/scripts/upgrade index bbfde78..744dc15 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -15,6 +15,8 @@ source /usr/share/yunohost/helpers ynh_script_progression --message="Loading installation settings..." --time --weight=1 app=$YNH_APP_INSTANCE_NAME +domain=$(ynh_app_setting_get --app=$app --key=domain) +path_url=$(ynh_app_setting_get --app=$app --key=path) final_path=$(ynh_app_setting_get --app=$app --key=final_path) #=================================================