From 41fc572227287258c6bce11be1470f1392429130 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Mon, 4 Dec 2023 20:16:42 +0100 Subject: [PATCH] fix #44 (new try) --- scripts/change_url | 4 ++-- scripts/upgrade | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index 63342db..5aaba14 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -13,8 +13,8 @@ source /usr/share/yunohost/helpers # LOAD SETTINGS #================================================= -admin=$(ynh_user_get_info --username=$admin --key=username) -admin_mail=$(ynh_user_get_info --username=$admin --key=mail) +weather_provider=$(ynh_app_setting_get --app=$app --key=$weather_provider) +weather_key=$(ynh_app_setting_get --app=$app --key=$weather_key) #================================================= # STANDARD UPGRADE STEPS diff --git a/scripts/upgrade b/scripts/upgrade index e5367b2..8b3f4de 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -16,9 +16,8 @@ source /usr/share/yunohost/helpers admin=$(ynh_user_get_info --username=$admin --key=username) admin_mail=$(ynh_user_get_info --username=$admin --key=mail) -ynh_app_setting_set --app=$app --key=weather_provider --value=$weather_provider -ynh_app_setting_set --app=$app --key=weather_key --value=$weather_key - +weather_provider=$(ynh_app_setting_get --app=$app --key=$weather_provider) +weather_key=$(ynh_app_setting_get --app=$app --key=$weather_key) #================================================= # CHECK VERSION