mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 05:44:07 -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
|
# Send notification
|
||||||
if [ -e "$BACKUP/$user.log" ]; then
|
if [ -e "$BACKUP/$user.log" ]; then
|
||||||
|
cd $BACKUP
|
||||||
subj="$user → backup has been completed"
|
subj="$user → backup has been completed"
|
||||||
email=$(get_user_value '$CONTACT')
|
email=$(get_user_value '$CONTACT')
|
||||||
cat $BACKUP/$user.log |$SENDMAIL -s "$subj" $email $notify
|
cat $BACKUP/$user.log |$SENDMAIL -s "$subj" $email $notify
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue