mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
send email using php wrapper
This commit is contained in:
parent
f70ba768a3
commit
8f03ce5e43
8 changed files with 41 additions and 8 deletions
|
@ -53,7 +53,11 @@ else
|
|||
subj="$user → backup failed"
|
||||
email=$(grep CONTACT $VESTA/data/users/admin/user.conf | cut -f 2 -d \')
|
||||
fi
|
||||
send_mail="$VESTA/web/inc/mail-wrapper.php"
|
||||
if [ -e "$VESTA/web/inc/mail-wrapper.php" ]; then
|
||||
send_mail="$VESTA/web/inc/mail-wrapper.php"
|
||||
else
|
||||
send_mail=$(which mail)
|
||||
fi
|
||||
|
||||
# Check load average
|
||||
la=$(cat /proc/loadavg | cut -f 1 -d ' ' | cut -f 1 -d '.')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue