From a46fc36ef94325373d2dd5bf69e7f2c33cbe43f0 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 25 Apr 2024 12:53:38 +0200 Subject: [PATCH] Make sure $language exists in upgrade script --- scripts/upgrade | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index e4aaaef..6539026 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -6,6 +6,11 @@ source /usr/share/yunohost/helpers email=$(ynh_user_get_info --username=$admin --key=mail) timezone="$(cat /etc/timezone)" +if [ -z "${language:-}" ]; then + language="en_US" + ynh_app_setting_set --app=$app --key=language --value=$language +fi + #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #=================================================