mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
Making v-backup-user able to send email notification
doh...
This commit is contained in:
parent
2bff53e881
commit
930a2a82e3
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue