diff --git a/manifest.toml b/manifest.toml index 694cb62..3e3eeae 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,7 +5,7 @@ name = "Outline" description.en = "Wiki and knowledge base for teams" description.fr = "Wiki et base de connaissances pour les équipes" -version = "0.75.0~ynh1" +version = "0.75.0~ynh2" maintainers = ["Raoul de Limezy"] diff --git a/scripts/upgrade b/scripts/upgrade index 5db2220..ed2ce02 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -63,6 +63,23 @@ else ynh_script_progression --message="No migration to be done" fi +#======================================================= +# MIGRATE DEFAULT LANGUAGE ENV PARAMETER +#======================================================= + +if ynh_compare_current_package_version --comparison le --version 0.75.0~ynh1 +then + ynh_script_progression --message="Migrating default language variable" + if [ "$language" == "fr" ] + then + $language = "fr_FR" + else + $language = "en_US" + fi +else + ynh_script_progression --message="No default language migration to be done" +fi + #================================================= # NGINX CONFIGURATION #=================================================