1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/fittrackee_ynh.git synced 2024-09-03 18:36:16 +02:00

Update upgrade

This commit is contained in:
Thomas 2023-12-17 17:06:42 +01:00 committed by GitHub
parent e2fd53ce0f
commit 3065ea9c18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,16 +9,6 @@
source _common.sh source _common.sh
source /usr/share/yunohost/helpers 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)
ynh_app_setting_set --app=$app --key=weather_api_provider --value=$weather_api_provider
ynh_app_setting_set --app=$app --key=weather_api_key --value=$weather_api_key
#================================================= #=================================================
# ENSURE DOWNWARD COMPATIBILITY # ENSURE DOWNWARD COMPATIBILITY
#================================================= #=================================================
@ -34,6 +24,15 @@ if [ -z "${weather_api_key:-}" ]; then
ynh_app_setting_set --app=$app --key=weather_api_key --value=$weather_api_key ynh_app_setting_set --app=$app --key=weather_api_key --value=$weather_api_key
fi fi
#=================================================
# LOAD SETTINGS
#=================================================
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_api_provider --value=$weather_api_provider
ynh_app_setting_set --app=$app --key=weather_api_key --value=$weather_api_key
#================================================= #=================================================
# CHECK VERSION # CHECK VERSION