ypbind.init: take the first domainname in yp.conf and use only that
(rhbz#601296)
This commit is contained in:
parent
4884aae2d1
commit
8935bf66e1
|
@ -67,7 +67,7 @@ start() {
|
||||||
action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
|
action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
|
||||||
else # See if the domain is set in config file
|
else # See if the domain is set in config file
|
||||||
NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
|
NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
|
||||||
awk '{print $2}'`
|
awk '{print $2}' | head -1`
|
||||||
if [ -n "$NISDOMAIN" ]; then
|
if [ -n "$NISDOMAIN" ]; then
|
||||||
action $"domain is '$NISDOMAIN' " \
|
action $"domain is '$NISDOMAIN' " \
|
||||||
domainname $NISDOMAIN
|
domainname $NISDOMAIN
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
Summary: The NIS daemon which binds NIS clients to an NIS domain
|
Summary: The NIS daemon which binds NIS clients to an NIS domain
|
||||||
Name: ypbind
|
Name: ypbind
|
||||||
Version: 1.31
|
Version: 1.31
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Source0: ftp://ftp.us.kernel.org/pub/linux/utils/net/NIS/ypbind-mt-%{version}.tar.bz2
|
Source0: ftp://ftp.us.kernel.org/pub/linux/utils/net/NIS/ypbind-mt-%{version}.tar.bz2
|
||||||
|
@ -85,6 +85,10 @@ fi
|
||||||
%doc README NEWS
|
%doc README NEWS
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jun 8 2010 Karel Klic <kklic@redhat.com> - 3:1.31-4
|
||||||
|
- ypbind.init: take the first domainname in yp.conf and use
|
||||||
|
only that (rhbz#601296)
|
||||||
|
|
||||||
* Wed May 19 2010 Karel Klic <kklic@redhat.com> - 3:1.31-3
|
* Wed May 19 2010 Karel Klic <kklic@redhat.com> - 3:1.31-3
|
||||||
- Update SELinux context of /etc/yp.conf in nis.sh (rhbz#593278)
|
- Update SELinux context of /etc/yp.conf in nis.sh (rhbz#593278)
|
||||||
- Use cp+rm instead of mv in nis.sh (#509240)
|
- Use cp+rm instead of mv in nis.sh (#509240)
|
||||||
|
|
Loading…
Reference in New Issue