diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-04-23 03:18:49 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-04-23 03:18:49 +0000 |
commit | bab8e641c447b3d9ca471c5fe1244b190c479b79 (patch) | |
tree | 02305661b621846c4ffbd092483cde299d6baf6b /etc/daily | |
parent | ef66b20c1c38c380c7524dbe77f613dd418b23a9 (diff) |
sync with netbsd 960418
Diffstat (limited to 'etc/daily')
-rw-r--r-- | etc/daily | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/etc/daily b/etc/daily index c0d3a051e99..279a7345079 100644 --- a/etc/daily +++ b/etc/daily @@ -28,18 +28,13 @@ if [ -d /var/tmp -a ! -h /var/tmp ]; then >/dev/null 2>&1; } fi -if [ -d /scratch -a ! -h /scratch ]; then - cd /scratch && { - find . ! -name . -atime +1 -exec rm -f -- {} \; - find . ! -name . -type d -mtime +1 -exec rmdir -- {} \; \ - >/dev/null 2>&1; } -fi - -# XXX should go away/be replaced by nvi version -if [ -d /var/preserve -a ! -h /var/preserve ]; then - cd /var/preserve && { - find . ! -name . -mtime +7 -exec rm -f -- {} \; ; } -fi +# Additional junk directory cleanup would go like this: +#if [ -d /scratch -a ! -h /scratch ]; then +# cd /scratch && { +# find . ! -name . -atime +1 -exec rm -f -- {} \; +# find . ! -name . -type d -mtime +1 -exec rmdir -- {} \; \ +# >/dev/null 2>&1; } +#fi if [ -d /var/rwho -a ! -h /var/rwho ] ; then cd /var/rwho && { |