1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/digiscreen_ynh.git synced 2024-09-03 18:26:15 +02:00

fix upgrade again...

This commit is contained in:
Félix Piédallu 2023-10-03 17:29:58 +02:00
parent 4058567665
commit f32cf17371

View file

@ -22,6 +22,7 @@ upgrade_type=$(ynh_check_app_version_changed)
#=================================================
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
googleYoutube="$(ynh_app_setting_get --app="$app" --key=googleYoutube)"
if [[ -n "${googleYoutube:-}" ]]; then
# migrate camelCase to snake_case
apikey_google_youtube="$googleYoutube"
@ -29,6 +30,7 @@ if [[ -n "${googleYoutube:-}" ]]; then
ynh_app_setting_delete --app="$app" --key="googleYoutube"
fi
pixabay="$(ynh_app_setting_get --app="$app" --key=pixabay)"
if [[ -n "${pixabay:-}" ]]; then
# migrate camelCase to snake_case
apikey_pixabay="$pixabay"