From 2336df509951e61fe31876d6df1d6f2caa91ee84 Mon Sep 17 00:00:00 2001 From: Antoine Ginies Date: Wed, 21 Jun 2006 08:34:45 +0000 Subject: Bind is now in chroot ENV --- dns_wizard/Bind.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dns_wizard') diff --git a/dns_wizard/Bind.pm b/dns_wizard/Bind.pm index 75d99b53..addb43e6 100644 --- a/dns_wizard/Bind.pm +++ b/dns_wizard/Bind.pm @@ -32,7 +32,7 @@ my $wiz = new MDK::Wizard::Wizcommon; my $SERIAL = chomp_(`date +20%y%m%d`); my $HOSTNAME = $wiz->{net}->network_get("HOSTNAME"); - +my $BIND_CHROOT = "/var/lib/named"; my $IPSERVER = $wiz->{net}->itf_get("IPADDR"); my $sys_wizard_dns = "/etc/sysconfig/drak_dns_wiz"; @@ -47,7 +47,7 @@ if (-f $sys_wizard_dns) { my $DOMAINNAME = chomp_(`dnsdomainname`); my $CLIENTIP = get_spe_ip("ipnor", $IPSERVER) . "."; my $WDIR = "/tmp/dnstest"; -my $NAMED_DIR = "/var/named"; +my $NAMED_DIR = $BIND_CHROOT . "/var/named"; my $DNSKEY = ""; my $SHORTHOSTNAME = chomp_(`hostname -s`); my $TEXTINFO = "dns Wizard"; @@ -279,7 +279,7 @@ $o->{pages} = { }; sub test_srv { - my $dir = "/var/named/zone"; + my $dir = $BIND_CHROOT . "/var/named/zone"; -d $dir or return 'error_nosrv'; } -- cgit v1.2.1