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

[fix] Unknown var

This commit is contained in:
ljf (zamentur) 2021-04-11 19:17:38 +02:00 committed by GitHub
parent 612bfbd2da
commit 848369ad1e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,7 +74,7 @@ fi
domain=$(hostname) domain=$(hostname)
repository="$(sudo yunohost app setting ${borg_id} repository)" repository="$(sudo yunohost app setting ${borg_id} repository)"
if [ ! -z "$errors" ]; then 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 cat <(echo -e "$errors\n\n\n") "$log_file" "$err_file" | mail -s "[borg] Backup failed from $domain onto $repository" root
exit 1 exit 1
else else
cat $log_file | mail -s "[borg] Backup succeed from $domain onto $repository" root cat $log_file | mail -s "[borg] Backup succeed from $domain onto $repository" root