From 0a4ce4d833711b8f7cbe39d01145e7e0195726c1 Mon Sep 17 00:00:00 2001 From: Limezy Date: Mon, 19 Feb 2024 22:47:53 +0700 Subject: [PATCH] Test --- manifest.toml | 2 +- scripts/upgrade | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) 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 #=================================================