summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-08-31 23:59:25 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-08-31 23:59:25 +0200
commit34915502e84df82a10b8f5564a5e0b8c0fa3408d (patch)
tree9cd4262d6dc157d7e129885b29d8cd9a240b3755
parent97d3e66da6d3aba9036de0716756909fcda009e1 (diff)
downloaddrakwizard-34915502e84df82a10b8f5564a5e0b8c0fa3408d.tar
drakwizard-34915502e84df82a10b8f5564a5e0b8c0fa3408d.tar.gz
drakwizard-34915502e84df82a10b8f5564a5e0b8c0fa3408d.tar.bz2
drakwizard-34915502e84df82a10b8f5564a5e0b8c0fa3408d.tar.xz
drakwizard-34915502e84df82a10b8f5564a5e0b8c0fa3408d.zip
simplify
-rw-r--r--common/Wizcommon.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/Wizcommon.pm b/common/Wizcommon.pm
index f09341f8..e9eeaa09 100644
--- a/common/Wizcommon.pm
+++ b/common/Wizcommon.pm
@@ -72,7 +72,7 @@ sub test_host_domain {
if ($SHORTHOSTNAME =~ /localhost/) {
return 0, N("You need to readjust your hostname. 'localhost' is not a correct hostname for a DNS server. Hostname must be a FQDN: Fully Qualified Domain Name");
}
- if (member($DOMAINNAME, qw(localdomain (none))) || $DOMAINNAME eq '') {
+ if (member($DOMAINNAME, qw(localdomain (none)), '')) {
return 0, N("You need to readjust your domainname. For a DNS server you need a correct domainname, not equal to localdomain or none. Hostname must be a FQDN: Fully Qualified Domain Name. Launch drakconnect to adjust it.");
}
return 1;