3934. [bug] Catch bad 'sit-secret' in named-checkconf. Improve

sit-secrets documentation. [RT #36980]

(cherry picked from commit 7c73ac5e13)
This commit is contained in:
Mark Andrews
2014-08-29 14:35:21 +10:00
parent bd14463fc2
commit e30f7e362d
6 changed files with 84 additions and 2 deletions

View File

@@ -32,6 +32,15 @@ havetc() {
grep 'flags:.* tc[^;]*;' $1 > /dev/null
}
for bad in bad*.conf
do
ret=0
echo "I:checking that named-checkconf detects error in $bad"
$CHECKCONF $bad > /dev/null 2>&1
if [ $? != 1 ]; then echo "I:failed"; ret=1; fi
status=`expr $status + $ret`
done
n=`expr $n + 1`
echo "I:checking SIT token returned to empty SIT option ($n)"
ret=0