mirror of
https://github.com/YunoHost-Apps/dotclear2_ynh.git
synced 2024-09-03 18:26:29 +02:00
Remove old settings
This commit is contained in:
parent
4dd8a031d3
commit
08950abc20
1 changed files with 19 additions and 0 deletions
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue