Merge pull request #826 from onbalt/master

Fix not sending "backup has been completed" mail
This commit is contained in:
Serghey Rodin 2016-09-05 16:31:19 +03:00 committed by GitHub
commit afd5193285

View file

@ -812,7 +812,7 @@ update_user_value "$user" '$U_BACKUPS' "$U_BACKUPS"
if [ -e "$BACKUP/$user.log" ]; then
subj="$user → backup has been completed"
email=$(get_user_value '$CONTACT')
cat $BACKUP/$user.log #|$SENDMAIL -s "$subj" $email $notify
cat $BACKUP/$user.log |$SENDMAIL -s "$subj" $email $notify
rm $BACKUP/$user.log
fi