From d968dec4f64ba23380d42e01b642a0dfc5898cc8 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Sun, 19 Nov 2023 18:41:30 +0100 Subject: [PATCH] fix https://github.com/YunoHost-Apps/fittrackee_ynh/issues/44 --- scripts/install | 3 +++ scripts/upgrade | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/scripts/install b/scripts/install index 34405ba..62248ef 100755 --- a/scripts/install +++ b/scripts/install @@ -11,6 +11,9 @@ 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 + #================================================= # LOGROTATE diff --git a/scripts/upgrade b/scripts/upgrade index 4321843..e5367b2 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -16,6 +16,10 @@ 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 + + #================================================= # CHECK VERSION #=================================================