From 64358b3309c6ed03066e4d8c15eb5e29aeb6aab4 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sun, 22 Aug 2021 20:08:51 +0200 Subject: [PATCH] Zgmgnifgrmbl --- conf/backup-with-borg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/backup-with-borg b/conf/backup-with-borg index 2a42a36..d5d70c2 100644 --- a/conf/backup-with-borg +++ b/conf/backup-with-borg @@ -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