summaryrefslogtreecommitdiffstats
path: root/dns_wizard
diff options
context:
space:
mode:
authorAntoine Ginies <aginies@mandriva.com>2006-06-21 08:34:45 +0000
committerAntoine Ginies <aginies@mandriva.com>2006-06-21 08:34:45 +0000
commit2336df509951e61fe31876d6df1d6f2caa91ee84 (patch)
treebbfa9d8dc698bed2203166d70f9508dc8c4847c9 /dns_wizard
parent06561d812ffc4090db7bffe8c3411ab37f335937 (diff)
downloaddrakwizard-2336df509951e61fe31876d6df1d6f2caa91ee84.tar
drakwizard-2336df509951e61fe31876d6df1d6f2caa91ee84.tar.gz
drakwizard-2336df509951e61fe31876d6df1d6f2caa91ee84.tar.bz2
drakwizard-2336df509951e61fe31876d6df1d6f2caa91ee84.tar.xz
drakwizard-2336df509951e61fe31876d6df1d6f2caa91ee84.zip
Bind is now in chroot ENV
Diffstat (limited to 'dns_wizard')
-rw-r--r--dns_wizard/Bind.pm6
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';
}