From 08950abc201679e252a0cc9b05779145ea53acf2 Mon Sep 17 00:00:00 2001 From: Kay0u Date: Sun, 10 Nov 2019 20:53:41 +0900 Subject: [PATCH] Remove old settings --- scripts/upgrade | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 1957de8..19dd76a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -25,6 +25,10 @@ db_name=$(ynh_app_setting_get $app db_name) db_pwd=$(ynh_app_setting_get $app mysqlpwd) master_key=$(ynh_app_setting_get $app master_key) +skipped_uris=$(ynh_app_setting_get $app skipped_uris) +unprotected_uris=$(ynh_app_setting_get $app unprotected_uris) +protected_uris=$(ynh_app_setting_get $app protected_uris) + #================================================= # ENSURE DOWNWARD COMPATIBILITY #================================================= @@ -47,6 +51,21 @@ if [ -z $final_path ]; then ynh_app_setting_set $app final_path $final_path fi +# Delete skipped_uris if it exists +if [ ! -z $skipped_uris ]; then + ynh_app_setting_delete $app skipped_uris +fi + +# Delete unprotected_uris if it exists +if [ ! -z $unprotected_uris ]; then + ynh_app_setting_delete $app unprotected_uris +fi + +# Delete protected_uris if it exists +if [ ! -z $protected_uris ]; then + ynh_app_setting_delete $app protected_uris +fi + #================================================= # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP #=================================================