diff --git a/scripts/upgrade b/scripts/upgrade index 80d9348..a12013b 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -45,13 +45,19 @@ if [ -z "$final_path" ]; then ynh_app_setting_set --app=$app --key=final_path --value=$final_path fi +# If language doesn't exist, create it +if [ -z "$language" ]; then + language="en" + ynh_app_setting_set --app=$app --key=language --value=$language +fi + case "$language" in Francais) - lang="fr" + language="fr" ynh_app_setting_set --app=$app --key=language --value=$language ;; English) - lang="en" + language="en" ynh_app_setting_set --app=$app --key=language --value=$language ;; *)