Commit e370cdf4 authored by Mark Andrews's avatar Mark Andrews

capture rndc output

(cherry picked from commit 2d58f4ae)
parent 8b074bef
......@@ -356,7 +356,8 @@ status=`expr $status + $ret`
echo "I:attempting to delete a policy zone ($n)"
$RNDC -c ../common/rndc.conf -s -p 9953 delzone 'policy in internal' 2>&1 | grep 'cannot be deleted' > /dev/null || ret=1
$RNDC -c ../common/rndc.conf -s -p 9953 delzone 'policy in internal' 2> rndc.out.ns2.$n >&1
grep 'cannot be deleted' rndc.out.ns2.$n > /dev/null || ret=1
n=`expr $n + 1`
if [ $ret != 0 ]; then echo "I:failed"; fi
status=`expr $status + $ret`
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment