1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/roundcube_ynh.git synced 2024-09-03 20:16:28 +02:00

Creat language if doesn't exist

This commit is contained in:
ericgaspar 2020-11-18 09:04:28 +01:00
parent 543c68e836
commit 546a6534b3
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -23,7 +23,14 @@ db_name=$(ynh_app_setting_get --app=$app --key=db_name)
with_carddav=$(ynh_app_setting_get --app=$app --key=with_carddav)
with_enigma=$(ynh_app_setting_get --app=$app --key=with_enigma)
phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
language=$(ynh_app_setting_get --app=$app --key=language)
# If language doesn't exist, create it
if [ -z "$language" ]; then
language=$YNH_APP_ARG_LANGUAGE
ynh_app_setting_set --app=$app --key=language --value=$language
else
language=$(ynh_app_setting_get --app=$app --key=language)
fi
#=================================================
# CHECK VERSION