Browse Source

by means of utilising -f avoid some warnings when rotating accounting files; millert@ ok

OPENBSD_3_4
mickey 21 years ago
parent
commit
06f0e69e20
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      src/etc/daily

+ 5
- 5
src/etc/daily View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $OpenBSD: daily,v 1.43 2003/03/28 21:32:30 jmc Exp $
# $OpenBSD: daily,v 1.44 2003/06/03 22:56:56 mickey Exp $
# From: @(#)daily 8.2 (Berkeley) 1/25/94
#
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
@ -82,10 +82,10 @@ fi
if [ -f /var/account/acct ]; then
echo ""
echo "Purging accounting records:"
mv /var/account/acct.2 /var/account/acct.3
mv /var/account/acct.1 /var/account/acct.2
mv /var/account/acct.0 /var/account/acct.1
cp /var/account/acct /var/account/acct.0
mv -f /var/account/acct.2 /var/account/acct.3
mv -f /var/account/acct.1 /var/account/acct.2
mv -f /var/account/acct.0 /var/account/acct.1
cp -f /var/account/acct /var/account/acct.0
sa -sq
fi


Loading…
Cancel
Save