diff options
author | Antoine Ginies <aginies@mandriva.com> | 2004-07-29 02:04:07 +0000 |
---|---|---|
committer | Antoine Ginies <aginies@mandriva.com> | 2004-07-29 02:04:07 +0000 |
commit | dfee762efdd0c693a10ebc5f4f698e012a839497 (patch) | |
tree | afb0bf584f7e7fd5c3633db69285f3cdb64f2325 | |
parent | 783492b7898f1b65b18b4f912e5a7aa6024e78a9 (diff) | |
download | drakwizard-dfee762efdd0c693a10ebc5f4f698e012a839497.tar drakwizard-dfee762efdd0c693a10ebc5f4f698e012a839497.tar.gz drakwizard-dfee762efdd0c693a10ebc5f4f698e012a839497.tar.bz2 drakwizard-dfee762efdd0c693a10ebc5f4f698e012a839497.tar.xz drakwizard-dfee762efdd0c693a10ebc5f4f698e012a839497.zip |
fix test of domainname
-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 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 }, }; |