From 3fa7c43ef73b6582e8985bf6d82465ffded9e5db Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 22 Aug 2017 17:10:01 +0200 Subject: s4:bind_dlz: Use the 'binddns dir' if possible The code makes sure we are backwards compatible. It will first check if we still have files in the private directory, if yes it will use those. If the the file is not in the private directory it will try the binddns dir. Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlet --- selftest/selftest.pl | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'selftest/selftest.pl') diff --git a/selftest/selftest.pl b/selftest/selftest.pl index b3ef65828d7..e16696ab061 100755 --- a/selftest/selftest.pl +++ b/selftest/selftest.pl @@ -512,6 +512,12 @@ sub write_clientconf($$$) mkdir("$clientdir/private", 0777); } + if ( -d "$clientdir/bind-dns" ) { + unlink <$clientdir/bind-dns/*>; + } else { + mkdir("$clientdir/bind-dns", 0777); + } + if ( -d "$clientdir/lockdir" ) { unlink <$clientdir/lockdir/*>; } else { @@ -595,6 +601,7 @@ sub write_clientconf($$$) } print CF " private dir = $clientdir/private + binddns dir = $clientdir/bind-dns lock dir = $clientdir/lockdir state directory = $clientdir/statedir cache directory = $clientdir/cachedir -- cgit v1.2.1