ypserv(8) doesn't need the domainname(1) set -- it will serve any maps
present under /var/yp/<somedomain>/<map> -- so don't require it. Thanks to Chuck Cranor for the suggestion.
This commit is contained in:
parent
fa7decee11
commit
c0372ca1ef
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: ypserv,v 1.8 2004/10/12 14:51:03 lukem Exp $
|
||||
# $NetBSD: ypserv,v 1.9 2005/04/01 23:25:29 lukem Exp $
|
||||
#
|
||||
|
||||
# PROVIDE: ypserv
|
||||
@ -16,14 +16,8 @@ start_precmd="ypserv_precmd"
|
||||
|
||||
ypserv_precmd()
|
||||
{
|
||||
_domain=$(domainname)
|
||||
if [ -z "$_domain" ]; then
|
||||
warn "domainname(1) is not set."
|
||||
return 1
|
||||
fi
|
||||
|
||||
if [ ! -d /var/yp/$_domain/. ]; then
|
||||
warn "/var/yp/$_domain is not a directory."
|
||||
if [ ! -d /var/yp/. ]; then
|
||||
warn "/var/yp is not a directory."
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user