From dfee762efdd0c693a10ebc5f4f698e012a839497 Mon Sep 17 00:00:00 2001 From: Antoine Ginies Date: Thu, 29 Jul 2004 02:04:07 +0000 Subject: fix test of domainname --- 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 21878a5a..f876c8e8 100644 --- a/dns_wizard/Bind.pm +++ b/dns_wizard/Bind.pm @@ -68,14 +68,14 @@ my $o = { CLIENTIP => '', }, needed_rpm => [ 'bind' ], - defaultimage => "$ENV{__WIZ_HOME__}/dns_wizard/images/DNS.png", + defaultimage => "/usr/share/wizards//dns_wizard/images/DNS.png", init => sub { if ($SHORTHOSTNAME =~ /localhost/) { return 0, N("You need to readjust your hostname.") } - if (member($DOMAINNAME, qw(localdomain (none)))) { + if (($DOMAINNAME eq "" || $DOMAINNAME eq "(none)") or ($HOSTNAME eq "localhost")) { return 0, N("You need to readjust your domainname. For a DNS server you need a correct domainname, not equal to localdomain or none. Launch drakconnect to adjust it.") - } + } 1 }, }; -- cgit v1.2.1