summaryrefslogtreecommitdiff
path: root/etc/daily
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2009-05-26 22:59:16 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2009-05-26 22:59:16 +0000
commitc23c6b7fedb59701ef012486e8efb29bf9d207f1 (patch)
treed86d9673b89484349be01dcd61b7d047b41e45ae /etc/daily
parent59c318933cd3aec4abdf420e852ac55fe0271b62 (diff)
Three rdist log file name improvements on one single line:
1) replace +%e by +%d, unescaped blanks don't work at all in file names 2) replace +%b by +%m to make log files sort better by month 3) replace the home-grown +%Y.%m.%d by the standard +%F (= +%Y-%m-%d) from Tim van der Molen <tbvdm at xs4all dot nl>, thanks! ok okan@
Diffstat (limited to 'etc/daily')
-rw-r--r--etc/daily5
1 files changed, 2 insertions, 3 deletions
diff --git a/etc/daily b/etc/daily
index acbb57da264..0a062cba4e0 100644
--- a/etc/daily
+++ b/etc/daily
@@ -1,5 +1,5 @@
#
-# $OpenBSD: daily,v 1.65 2009/05/25 21:31:24 schwarze Exp $
+# $OpenBSD: daily,v 1.66 2009/05/26 22:59:15 schwarze Exp $
# From: @(#)daily 8.2 (Berkeley) 1/25/94
#
# For local additions, create the file /etc/daily.local.
@@ -175,8 +175,7 @@ next_part "Checking filesystems:"
next_part "Running rdist:"
if [ -f /etc/Distfile ]; then
if [ -d /var/log/rdist ]; then
- logf=`date +%Y.%b.%e`
- rdist -f /etc/Distfile 2>&1 | tee /var/log/rdist/$logf
+ rdist -f /etc/Distfile 2>&1 | tee /var/log/rdist/`date +%F`
else
rdist -f /etc/Distfile
fi