1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/firefly-iii_ynh.git synced 2024-09-03 18:36:13 +02:00

Make sure $language exists in upgrade script

This commit is contained in:
Alexandre Aubin 2024-04-25 12:53:38 +02:00
parent 0a6233269f
commit a46fc36ef9

View file

@ -6,6 +6,11 @@ source /usr/share/yunohost/helpers
email=$(ynh_user_get_info --username=$admin --key=mail) email=$(ynh_user_get_info --username=$admin --key=mail)
timezone="$(cat /etc/timezone)" 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 # DOWNLOAD, CHECK AND UNPACK SOURCE
#================================================= #=================================================