summaryrefslogtreecommitdiff
path: root/usr.sbin/ypserv/ypinit
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-11-08 00:01:06 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-11-08 00:01:06 +0000
commita8a7b0e9ca66907d2b920f5775680a9ae74bcb46 (patch)
treeacb329bbe6177c6a32e1c06e9447b0b921910911 /usr.sbin/ypserv/ypinit
parent250b3d15afc014ee96c7b2794713de712baae869 (diff)
use /var/yp.no
Diffstat (limited to 'usr.sbin/ypserv/ypinit')
-rw-r--r--usr.sbin/ypserv/ypinit/Makefile5
-rw-r--r--usr.sbin/ypserv/ypinit/ypinit.sh3
2 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/ypserv/ypinit/Makefile b/usr.sbin/ypserv/ypinit/Makefile
index bc5ba74520b..fce3cdb6915 100644
--- a/usr.sbin/ypserv/ypinit/Makefile
+++ b/usr.sbin/ypserv/ypinit/Makefile
@@ -1,11 +1,12 @@
# from: @(#)Makefile 5.3 (Berkeley) 6/22/90
-# $Id: Makefile,v 1.2 1995/11/06 21:35:06 deraadt Exp $
+# $Id: Makefile,v 1.3 1995/11/08 00:01:04 deraadt Exp $
FILES= Makefile.yp
NOOBJ= noobj
install:
- install -c -o root -g wheel -m 644 Makefile.yp ${DESTDIR}/var/yp/Makefile
+ install -c -o root -g wheel -m 644 Makefile.yp \
+ ${DESTDIR}/var/yp.no/Makefile
install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
${.CURDIR}/ypinit.sh ${DESTDIR}/usr/sbin/ypinit
diff --git a/usr.sbin/ypserv/ypinit/ypinit.sh b/usr.sbin/ypserv/ypinit/ypinit.sh
index e6211f67a1a..5e7ec963264 100644
--- a/usr.sbin/ypserv/ypinit/ypinit.sh
+++ b/usr.sbin/ypserv/ypinit/ypinit.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-# $Id: ypinit.sh,v 1.1 1995/11/01 16:56:29 deraadt Exp $
+# $Id: ypinit.sh,v 1.2 1995/11/08 00:01:05 deraadt Exp $
#
# ypinit.sh - setup an master or slave server.
#
@@ -95,6 +95,7 @@ fi
if [ ! -d ${YP_DIR} -o -f ${YP_DIR} ]
then
echo "The directory ${YP_DIR} doesn't exist. Restore it from the distribution." 1>&2
+ echo "(Or move ${YP_DIR}.no to ${YP_DIR} if YP has not been activated before." 1>&2
exit 1
fi