Skip to content

Commit 930290f

Browse files
committed
full path to named-checkconf command
1 parent 15d1f4f commit 930290f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/v-restart-dns

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ send_email_report() {
2525
email=$(echo "$email" | cut -f 2 -d "'")
2626
tmpfile=$(mktemp)
2727
subj="$(hostname): $DNS_SYSTEM restart failed"
28-
named-checkconf $dns_conf >> $tmpfile 2>&1
28+
/usr/sbin/named-checkconf $dns_conf >> $tmpfile 2>&1
2929
service $DNS_SYSTEM restart >> $tmpfile 2>&1
3030
cat $tmpfile | $send_mail -s "$subj" $email
3131
rm -f $tmpfile

0 commit comments

Comments
 (0)