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 diff --git a/manifest.json b/manifest.json index a4d352f..0a3c02c 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Backup your server on a host server using Borg.", "fr": "Sauvegardez votre serveur sur un serveur distant avec Borg." }, - "version": "1.1.16~ynh21", + "version": "1.1.16~ynh22", "url": "https://borgbackup.readthedocs.io", "license": "BSD-3-Clause", "maintainer": {