mirror of
https://github.com/YunoHost-Apps/borg_ynh.git
synced 2024-09-03 18:16:05 +02:00
[fix] Missing repo name in email
This commit is contained in:
parent
121e252000
commit
c321d59903
2 changed files with 3 additions and 2 deletions
|
@ -72,10 +72,11 @@ fi
|
|||
|
||||
# Send mail on backup (partially) failed
|
||||
domain=$(hostname)
|
||||
repository="$(sudo yunohost app setting ${borg_id} repository)"
|
||||
if [ ! -z "$errors" ]; then
|
||||
cat <(echo -e "$errors\n\n\n") "$log_file" "$err_file" | mail -s "[borg] Backup failed from $domain onto $repo" root
|
||||
exit 1
|
||||
else
|
||||
cat $log_file | mail -s "[borg] Backup succeed from $domain onto $repo" root
|
||||
cat $log_file | mail -s "[borg] Backup succeed from $domain onto $repository" root
|
||||
exit 0
|
||||
fi
|
||||
|
|
|
@ -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~ynh16",
|
||||
"version": "1.1.16~ynh17",
|
||||
"url": "https://borgbackup.readthedocs.io",
|
||||
"license": "BSD-3-Clause",
|
||||
"maintainer": {
|
||||
|
|
Loading…
Add table
Reference in a new issue