diff options
author | Antoine Ginies <aginies@mandriva.com> | 2006-06-21 08:34:45 +0000 |
---|---|---|
committer | Antoine Ginies <aginies@mandriva.com> | 2006-06-21 08:34:45 +0000 |
commit | 2336df509951e61fe31876d6df1d6f2caa91ee84 (patch) | |
tree | bbfa9d8dc698bed2203166d70f9508dc8c4847c9 | |
parent | 06561d812ffc4090db7bffe8c3411ab37f335937 (diff) | |
download | drakwizard-2336df509951e61fe31876d6df1d6f2caa91ee84.tar drakwizard-2336df509951e61fe31876d6df1d6f2caa91ee84.tar.gz drakwizard-2336df509951e61fe31876d6df1d6f2caa91ee84.tar.bz2 drakwizard-2336df509951e61fe31876d6df1d6f2caa91ee84.tar.xz drakwizard-2336df509951e61fe31876d6df1d6f2caa91ee84.zip |
Bind is now in chroot ENV
-rw-r--r-- | dns_wizard/Bind.pm | 6 |
1 files changed, 3 insertions, 3 deletions
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'; } |