mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -07:00
full path to named-checkconf command
This commit is contained in:
parent
15d1f4f4c9
commit
930290f518
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ send_email_report() {
|
||||||
email=$(echo "$email" | cut -f 2 -d "'")
|
email=$(echo "$email" | cut -f 2 -d "'")
|
||||||
tmpfile=$(mktemp)
|
tmpfile=$(mktemp)
|
||||||
subj="$(hostname): $DNS_SYSTEM restart failed"
|
subj="$(hostname): $DNS_SYSTEM restart failed"
|
||||||
named-checkconf $dns_conf >> $tmpfile 2>&1
|
/usr/sbin/named-checkconf $dns_conf >> $tmpfile 2>&1
|
||||||
service $DNS_SYSTEM restart >> $tmpfile 2>&1
|
service $DNS_SYSTEM restart >> $tmpfile 2>&1
|
||||||
cat $tmpfile | $send_mail -s "$subj" $email
|
cat $tmpfile | $send_mail -s "$subj" $email
|
||||||
rm -f $tmpfile
|
rm -f $tmpfile
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue