mirror of
https://github.com/YunoHost-Apps/rainloop_ynh.git
synced 2024-09-03 20:16:18 +02:00
Fix legacy lang setting handling
This commit is contained in:
parent
d164e4f60a
commit
b8b8a4683b
1 changed files with 5 additions and 1 deletions
|
@ -63,7 +63,6 @@ fi
|
|||
if [ -z "$language" ]; then
|
||||
language="en"
|
||||
ynh_app_setting_set --app=$app --key=language --value=$language
|
||||
ynh_app_setting_delete --app=$app --key=$lang
|
||||
fi
|
||||
|
||||
case "$language" in
|
||||
|
@ -79,6 +78,11 @@ case "$language" in
|
|||
;;
|
||||
esac
|
||||
|
||||
# Delete legacy lang setting
|
||||
if [ -n "$(ynh_app_setting_get --app=$app --key=lang)" ]; then
|
||||
ynh_app_setting_delete --app=$app --key=$lang
|
||||
fi
|
||||
|
||||
# Cleaning legacy permissions
|
||||
if ynh_legacy_permissions_exists; then
|
||||
ynh_legacy_permissions_delete_all
|
||||
|
|
Loading…
Reference in a new issue