diff options
author | 1996-11-06 23:03:21 +0000 | |
---|---|---|
committer | 1996-11-06 23:03:21 +0000 | |
commit | e2399c2722509526490a1e3f68bee87cab44f66b (patch) | |
tree | c93ed3f4a707a2b741ce60d53c9f70e293286f3c | |
parent | Negative logic. Cleanup output. (diff) | |
download | wireguard-openbsd-e2399c2722509526490a1e3f68bee87cab44f66b.tar.xz wireguard-openbsd-e2399c2722509526490a1e3f68bee87cab44f66b.zip |
only run calendar on yp server; from matthieu@laas.fr
-rw-r--r-- | etc/daily | 10 |
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' |