Making v-backup-user able to send email notification

doh...
This commit is contained in:
dpeca 2017-04-11 17:52:07 +02:00 committed by GitHub
commit 930a2a82e3

View file

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