From fbd1a737817239d5575fc7329a049d401b0305b4 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Sat, 24 Feb 2024 10:32:45 +0100 Subject: [PATCH] cleaning --- scripts/change_url | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/scripts/change_url b/scripts/change_url index 63342db..b945c14 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -16,6 +16,21 @@ source /usr/share/yunohost/helpers admin=$(ynh_user_get_info --username=$admin --key=username) admin_mail=$(ynh_user_get_info --username=$admin --key=mail) +if [ -z "${weather_api_provider:-}" ]; then + weather_api_provider=$weather_provider + ynh_app_setting_set --app=$app --key=weather_api_provider --value=$weather_api_provider +fi + +if [ -z "${weather_api_key:-}" ]; then + weather_api_key=$weather_key + ynh_app_setting_set --app=$app --key=weather_api_key --value=$weather_api_key +fi + +if [ -z "${$redis_db:-}" ]; then + redis_db=$(ynh_redis_get_free_db) + ynh_app_setting_set --app="$app" --key=redis_db --value="$redis_db" +fi + #================================================= # STANDARD UPGRADE STEPS #=================================================