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

Update upgrade

This commit is contained in:
ericgaspar 2020-11-20 22:06:07 +01:00
parent 546a6534b3
commit 3a5ad42ff5
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -23,14 +23,7 @@ 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)
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 # CHECK VERSION
@ -77,6 +70,12 @@ if [ -z "$with_enigma" ]; then
ynh_app_setting_set --app=$app --key=with_enigma --value=$with_enigma ynh_app_setting_set --app=$app --key=with_enigma --value=$with_enigma
fi fi
# If language doesn't exist, create it
if [ -z "$language" ]; then
language="en_GB"
ynh_app_setting_set --app=$app --key=language --value=$language
fi
#================================================= #=================================================
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
#================================================= #=================================================