mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 10:29:15 +00:00
Added the yppwupdate script. This is a small shell script that yppasswdd
executes after it finishes updating the raw master.passwd file. The script is just there to invoke /var/yp/Makefile to build new maps and yppush them. We could have yppasswdd run /var/yp/Makefile directly, but this allws a bit more flexibility: the user may decide to run some other commands too.
This commit is contained in:
parent
85e33f94dc
commit
ba3fbfe69c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=6085
@ -1,3 +1,4 @@
|
||||
# $Id$
|
||||
# @(#)Makefile 8.3 (Berkeley) 4/2/94
|
||||
|
||||
PROG= yppasswdd
|
||||
@ -12,5 +13,11 @@ CFLAGS+=-DVERSION=\"0.5\" -DYPLIBDIR=\"/usr/libexec\" -D_GNU_SOURCE
|
||||
|
||||
BINOWN= bin
|
||||
BINMODE=555
|
||||
BINDIR= /usr/sbin
|
||||
|
||||
afterinstall: /usr/libexec/yppwupdate
|
||||
|
||||
/usr/libexec/yppwupdate: yppwupdate
|
||||
install -c -o bin -g bin -m 555 yppwupdate /usr/libexec/yppwupdate
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
6
gnu/usr.sbin/yppasswdd/yppwupdate
Normal file
6
gnu/usr.sbin/yppasswdd/yppwupdate
Normal file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# This script is invoked by yppasswdd to update the password
|
||||
# maps after the master password file has been modified.
|
||||
|
||||
cd /var/yp; make
|
Loading…
Reference in New Issue
Block a user