mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Make changed variables' old values available in config panels scripts
This commit is contained in:
parent
8a0a33a0de
commit
6cc4ce83ae
1 changed files with 1 additions and 0 deletions
|
@ -90,6 +90,7 @@ _ynh_app_config_apply_one() {
|
|||
|
||||
# Save value in app settings
|
||||
elif [[ "$bind" == "settings" ]]; then
|
||||
declare -g "old_$short_setting"=$(ynh_app_setting_get --app=$app --key=$short_setting)
|
||||
ynh_app_setting_set --app=$app --key=$short_setting --value="${!short_setting}"
|
||||
ynh_print_info --message="Configuration key '$short_setting' edited in app settings"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue