summaryrefslogtreecommitdiffstats
path: root/dns_wizard
diff options
context:
space:
mode:
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 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
},
};