From 4072455c00f183fd50291f1447343e56766793f9 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 1 Dec 2010 10:07:38 +1100 Subject: wintest Wipe the BIND data directory just before we restart bind This will hopefully mean we don't end up with stale zone info in the new server. Andrew Bartlett --- wintest/test-s4-howto.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'wintest') diff --git a/wintest/test-s4-howto.py b/wintest/test-s4-howto.py index 588fcbe93f..99e11d779c 100755 --- a/wintest/test-s4-howto.py +++ b/wintest/test-s4-howto.py @@ -141,8 +141,6 @@ def restart_bind(t): t.putenv('KEYTAB_FILE', '${PREFIX}/private/dns.keytab') t.putenv('KRB5_KTNAME', '${PREFIX}/private/dns.keytab') t.chdir('${PREFIX}') - t.run_cmd("mkdir -p var/named/data") - t.run_cmd("chown -R ${BIND_USER} var/named") nameserver = t.get_nameserver() if nameserver == t.getvar('INTERFACE_IP'): @@ -225,6 +223,11 @@ options { rndc_cmd(t, "stop", checkfail=False) t.port_wait("${INTERFACE_IP}", 53, wait_for_fail=True) + + t.run_cmd("rm -rf var/named") + t.run_cmd("mkdir -p var/named/data") + t.run_cmd("chown -R ${BIND_USER} var/named") + t.bind_child = t.run_child("${BIND9} -u ${BIND_USER} -n 1 -c ${PREFIX}/etc/named.conf -g") t.port_wait("${INTERFACE_IP}", 53) -- cgit