From 07c621deb6e1e48a626079e5a6abaea69030f4cb Mon Sep 17 00:00:00 2001 From: Antoine Ginies Date: Tue, 20 Jan 2004 16:43:24 +0000 Subject: add a nisdomain test --- nisautofs_wizard/Nisautofs.pm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'nisautofs_wizard') diff --git a/nisautofs_wizard/Nisautofs.pm b/nisautofs_wizard/Nisautofs.pm index 7e45adbd..19ff4f2c 100644 --- a/nisautofs_wizard/Nisautofs.pm +++ b/nisautofs_wizard/Nisautofs.pm @@ -58,6 +58,12 @@ my $o = { }, needed_rpm => [ 'ypbind', 'nfs-utils', 'yp-tools', 'nfs-utils-clients' ], defaultimage => "/usr/share/wizards/dns_wizard/images/NIS.png" + init => sub { + if (member($NISDOMAIN, qw(localdomain (none)))) { + return (0, N("You need to readjust your NIS domainname. For a NIS server you need a correct NIS domainname, not egal to localdomain or none. Add NISDOMAIN=your_nis_domain in /etc/sysconfig/network file, and do a: nisdomainname your_nis_domain.")) + } + 1 + }, }; my %level = ( -- cgit v1.2.1