summaryrefslogtreecommitdiffstats
path: root/nisautofs_wizard/Nisautofs.pm
diff options
context:
space:
mode:
Diffstat (limited to 'nisautofs_wizard/Nisautofs.pm')
-rw-r--r--nisautofs_wizard/Nisautofs.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/nisautofs_wizard/Nisautofs.pm b/nisautofs_wizard/Nisautofs.pm
index 39742e7e..771dde4a 100644
--- a/nisautofs_wizard/Nisautofs.pm
+++ b/nisautofs_wizard/Nisautofs.pm
@@ -62,7 +62,11 @@ my $o = {
needed_rpm => [ 'ypserv', 'ypbind', 'nfs-utils', 'yp-tools', 'nfs-utils-clients' ],
defaultimage => "/usr/share/mcc/themes/default/nisautofs.png",
init => sub {
- test_host_domain($HOST, $NISDOMAIN);
+ my ($err, $msg) = test_host_domain($SHORTHOSTNAME, $DOMAINNAME);
+ if (!$err) {
+ $in->ask_warn(N('Error'), $msg);
+ die 'wizcancel';
+ }
},
};