mirror of
https://github.com/YunoHost-Apps/borg_ynh.git
synced 2024-09-03 18:16:05 +02:00
When upgrading, make a default value for mailalert setting, if it is missing.
This commit is contained in:
parent
d26ca69558
commit
05662efa13
1 changed files with 4 additions and 0 deletions
|
@ -24,6 +24,10 @@ export conf="$(ynh_app_setting_get $app conf)"
|
||||||
export data="$(ynh_app_setting_get $app data)"
|
export data="$(ynh_app_setting_get $app data)"
|
||||||
export apps="$(ynh_app_setting_get $app apps)"
|
export apps="$(ynh_app_setting_get $app apps)"
|
||||||
export mailalert="$(ynh_app_setting_get $app mailalert)"
|
export mailalert="$(ynh_app_setting_get $app mailalert)"
|
||||||
|
if [[ $mailalert != "always" && $mailalert != "errors_only" && $mailalert != "never" ]]; then
|
||||||
|
ynh_app_setting_set --app=$app --key="mailalert" --value="errors_only"
|
||||||
|
export mailalert="errors_only"
|
||||||
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CHECK IF AN UPGRADE IS NEEDED
|
# CHECK IF AN UPGRADE IS NEEDED
|
||||||
|
|
Loading…
Add table
Reference in a new issue