mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 18:49:17 -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 "'")
|
||||
tmpfile=$(mktemp)
|
||||
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
|
||||
cat $tmpfile | $send_mail -s "$subj" $email
|
||||
rm -f $tmpfile
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue