1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/outline_ynh.git synced 2024-09-03 19:56:12 +02:00

Merge pull request #104 from Limezy/v0.75.0.2

Fix language env variable from older instances
This commit is contained in:
Limezy 2024-02-21 16:57:46 +07:00 committed by GitHub
commit 88cd94184d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 18 additions and 1 deletions

View file

@ -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"]

View file

@ -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
#=================================================