summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1996-11-06 23:03:21 +0000
committerderaadt <deraadt@openbsd.org>1996-11-06 23:03:21 +0000
commite2399c2722509526490a1e3f68bee87cab44f66b (patch)
treec93ed3f4a707a2b741ce60d53c9f70e293286f3c
parentNegative logic. Cleanup output. (diff)
downloadwireguard-openbsd-e2399c2722509526490a1e3f68bee87cab44f66b.tar.xz
wireguard-openbsd-e2399c2722509526490a1e3f68bee87cab44f66b.zip
only run calendar on yp server; from matthieu@laas.fr
-rw-r--r--etc/daily10
1 files changed, 7 insertions, 3 deletions
diff --git a/etc/daily b/etc/daily
index fb1509ecc8d..5f15e60e485 100644
--- a/etc/daily
+++ b/etc/daily
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: daily,v 1.9 1996/07/27 14:12:24 downsj Exp $
+# $OpenBSD: daily,v 1.10 1996/11/06 23:03:21 deraadt Exp $
#
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local
host=`hostname -s`
@@ -84,8 +84,12 @@ if [ -f /var/account/acct ]; then
fi
echo ""
-echo "Running calendar:"
-calendar -a
+if [ -d /var/yp/binding -a ! -d /var/yp/`domainname` ]; then
+ echo "Not running calendar, (yp client)"
+else
+ echo "Running calendar:"
+ calendar -a
+fi
# Rotation of mail log now handled automatically by cron and 'newsyslog'