Browse Source

Use `hostname` not `hostname -s` in subject for consistency with

daily, weekly, and monthly.  Closes PR 3017.
OPENBSD_3_3
millert 22 years ago
parent
commit
27938991c6
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      src/etc/daily

+ 2
- 3
src/etc/daily View File

@ -1,10 +1,9 @@
#!/bin/sh -
#
# $OpenBSD: daily,v 1.40 2002/09/12 02:36:31 danh Exp $
# $OpenBSD: daily,v 1.41 2002/12/07 20:16:19 millert Exp $
# From: @(#)daily 8.2 (Berkeley) 1/25/94
#
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
host=`hostname -s`
bak=/var/backups
if [ -f /etc/daily.local ]; then
@ -176,5 +175,5 @@ fi
sh /etc/security 2>&1 > $OUT
if [ -s $OUT ]; then
mail -s "$host daily insecurity output" root < $OUT
mail -s "`hostname` daily insecurity output" root < $OUT
fi

Loading…
Cancel
Save