mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-20 21:34:11 -07:00
Merge pull request #826 from onbalt/master
Fix not sending "backup has been completed" mail
This commit is contained in:
commit
afd5193285
1 changed files with 1 additions and 1 deletions
|
@ -812,7 +812,7 @@ update_user_value "$user" '$U_BACKUPS' "$U_BACKUPS"
|
||||||
if [ -e "$BACKUP/$user.log" ]; then
|
if [ -e "$BACKUP/$user.log" ]; then
|
||||||
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
|
||||||
rm $BACKUP/$user.log
|
rm $BACKUP/$user.log
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue