mirror of
https://github.com/YunoHost-Apps/hextris_ynh.git
synced 2024-09-03 19:16:05 +02:00
Cleaning legacy permission in upgrade
This commit is contained in:
parent
21abcad4fa
commit
7f25eda031
1 changed files with 21 additions and 3 deletions
|
@ -30,12 +30,30 @@ upgrade_type=$(ynh_check_app_version_changed)
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Ensuring downward compatibility..."
|
ynh_script_progression --message="Ensuring downward compatibility..."
|
||||||
|
|
||||||
# REMOVE SKIPPED_URIS
|
# Cleaning legacy permissions
|
||||||
|
is_public=$(ynh_app_setting_get --app=$app --key=is_public)
|
||||||
skipped_uris=$(ynh_app_setting_get --app=$app --key=skipped_uris)
|
skipped_uris=$(ynh_app_setting_get --app=$app --key=skipped_uris)
|
||||||
|
unprotected_uris=$(ynh_app_setting_get --app=$app --key=unprotected_uris)
|
||||||
|
protected_uris=$(ynh_app_setting_get --app=$app --key=protected_uris)
|
||||||
|
|
||||||
# Unused with the permission system
|
# Remove is_public if exists
|
||||||
|
if [ ! -z "$is_public" ]; then
|
||||||
|
ynh_app_setting_delete --app=$app --key=is_public
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Remove skipped_uris if exists
|
||||||
if [ ! -z "$skipped_uris" ]; then
|
if [ ! -z "$skipped_uris" ]; then
|
||||||
ynh_app_setting_delete --app=$app --key=skipped_uris
|
ynh_app_setting_delete --app=$app --key=skipped_uris
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Remove unprotected_uris if exists
|
||||||
|
if [ ! -z "$unprotected_uris" ]; then
|
||||||
|
ynh_app_setting_delete --app=$app --key=unprotected_uris
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Remove protected_uris if exists
|
||||||
|
if [ ! -z "$protected_uris" ]; then
|
||||||
|
ynh_app_setting_delete --app=$app --key=protected_uris
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If final_path doesn't exist, create it
|
# If final_path doesn't exist, create it
|
||||||
|
|
Loading…
Reference in a new issue