summaryrefslogtreecommitdiffstats
path: root/etc/periodic
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1999-06-10 00:34:15 +0000
committerbrian <brian@FreeBSD.org>1999-06-10 00:34:15 +0000
commit6c60b3cb5f358a429f492690d847a7ae916d720f (patch)
tree9d029558a99166353d2af6386a0d61f37ac60962 /etc/periodic
parent49e3fb36770b709c3b12a34f6981ff0fe97daa95 (diff)
downloadFreeBSD-src-6c60b3cb5f358a429f492690d847a7ae916d720f.zip
FreeBSD-src-6c60b3cb5f358a429f492690d847a7ae916d720f.tar.gz
Don't delete quota files when clean-tmps is enabled.
Diffstat (limited to 'etc/periodic')
-rwxr-xr-xetc/periodic/daily/110.clean-tmps5
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/periodic/daily/110.clean-tmps b/etc/periodic/daily/110.clean-tmps
index 21fbada..2b1e9ef 100755
--- a/etc/periodic/daily/110.clean-tmps
+++ b/etc/periodic/daily/110.clean-tmps
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $Id: 110.clean-tmps,v 1.3 1997/09/11 15:21:30 ache Exp $
+# $Id: 110.clean-tmps,v 1.4 1999/03/21 12:33:54 joerg Exp $
#
# Use at your own risk, but for a long-living system, this might come
# more useful than the boot-time cleaning of /tmp. If /var/tmp and
@@ -12,7 +12,8 @@ exit 0 # do not run by default
if [ -d /tmp ]; then
cd /tmp && {
- find . -type f -atime +3 -ctime +3 ! -name '.X*-lock' -delete
+ find . -type f -atime +3 -ctime +3 ! -name '.X*-lock' \
+ ! -name quota.user ! -name quota.group -delete
find -d . ! -name . -type d -mtime +1 -delete
}
fi
OpenPOWER on IntegriCloud