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:
parent
e2fd53ce0f
commit
3065ea9c18
1 changed files with 9 additions and 10 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue