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:
parent
543c68e836
commit
546a6534b3
1 changed files with 8 additions and 1 deletions
|
@ -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_carddav=$(ynh_app_setting_get --app=$app --key=with_carddav)
|
||||||
with_enigma=$(ynh_app_setting_get --app=$app --key=with_enigma)
|
with_enigma=$(ynh_app_setting_get --app=$app --key=with_enigma)
|
||||||
phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
|
phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
|
||||||
|
|
||||||
|
# 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)
|
language=$(ynh_app_setting_get --app=$app --key=language)
|
||||||
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CHECK VERSION
|
# CHECK VERSION
|
||||||
|
|
Loading…
Add table
Reference in a new issue