Explorar el Código

full path to named-checkconf command

Serghey Rodin hace 10 años
padre
commit
930290f518
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      bin/v-restart-dns

+ 1 - 1
bin/v-restart-dns

@@ -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