Skip to content

Commit 930a2a8

Browse files
authored
Making v-backup-user able to send email notification
doh...
1 parent 2bff53e commit 930a2a8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bin/v-backup-user

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,7 @@ update_user_value "$user" '$U_BACKUPS' "$U_BACKUPS"
853853

854854
# Send notification
855855
if [ -e "$BACKUP/$user.log" ]; then
856+
cd $BACKUP
856857
subj="$user → backup has been completed"
857858
email=$(get_user_value '$CONTACT')
858859
cat $BACKUP/$user.log |$SENDMAIL -s "$subj" $email $notify

0 commit comments

Comments
 (0)