1
0
Fork 0
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:
tituspijean 2022-05-03 18:51:30 +02:00
parent d164e4f60a
commit b8b8a4683b
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720

View file

@ -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