mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 13:54:26 -07:00
suspend remote dns if connection failed
This commit is contained in:
parent
bbc652c331
commit
f70ba768a3
9 changed files with 85 additions and 74 deletions
|
@ -34,7 +34,11 @@ if [ ! -z "$DNS_SYSTEM" ]; then
|
|||
if [ $? -ne 0 ]; then
|
||||
/etc/init.d/$DNS_SYSTEM restart >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
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
|
||||
email=$(grep CONTACT $VESTA/data/users/admin/user.conf)
|
||||
email=$(echo "$email" | cut -f 2 -d "'")
|
||||
tmpfile=$(mktemp)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue