1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/borg_ynh.git synced 2024-09-03 18:16:05 +02:00

Zgmgnifgrmbl

This commit is contained in:
Alexandre Aubin 2021-08-22 20:08:51 +02:00 committed by GitHub
parent 4ff3491567
commit 64358b3309
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -77,7 +77,7 @@ mailalert="$(sudo yunohost app setting ${borg_id} mailalert)"
if [[ ! -z "$errors" && $mailalert != "never" ]]; then
cat <(echo -e "$errors\n\n\n") "$log_file" "$err_file" | mail -s "[borg] Backup failed from $domain onto $repository" root
exit 1
elif [ $mailalert == "always" ]
elif [ $mailalert == "always" ]; then
cat $log_file | mail -s "[borg] Backup succeed from $domain onto $repository" root
exit 0
fi