Skip to content

Commit 537c15d

Browse files
committed
Update cleanup
1 parent b5e8c55 commit 537c15d

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

alpine/alpine-root/etc/periodic/monthly/clean-old-files.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ find /coredumps/ /home/*/Downloads/ -mindepth 1 -not -path '*/.*' -mtime +30 -ex
2323
# remove at least 1y old rotated logs
2424
find /var/log/ -mindepth 1 -path '*/*.gz' -mtime +365 -exec rm -f {} +
2525

26-
find /root/tmp/.vimundo/ -type f -mtime +90 -delete
27-
find /root/tmp/.vimswaps/ -type f -mtime +90 -delete
28-
find /home/*/tmp/.vimundo/ -type f -mtime +90 -delete
29-
find /home/*/tmp/.vimswaps/ -type f -mtime +90 -delete
26+
find /{root,home/*}/tmp/.vim{undo,swaps}/ /var/spool/nullmailer/ -type f -mtime +90 -delete
3027

3128
find / -xdev -type d -name __MACOSX -exec rm -rf {} +

gentoo/gentoo-root/usr/local/sbin/clean-old-files.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ find /coredumps/ /home/*/Downloads/ /var/tmp/portage/ -mindepth 1 -not -path '*/
2323
# remove at least 1y old rotated logs
2424
find /var/log/ -mindepth 1 -path '*/*.gz' -mtime +365 -exec rm -f {} +
2525

26-
find /root/.vimundo/ -type f -mtime +90 -delete
27-
find /root/.vimswaps/ -type f -mtime +90 -delete
28-
find /home/*/.vimundo/ -type f -mtime +90 -delete
29-
find /home/*/.vimswaps/ -type f -mtime +90 -delete
26+
find /{root,home/*}/tmp/.vim{undo,swaps}/ /var/spool/nullmailer/ -type f -mtime +90 -delete
3027

3128
find / -xdev -type d -name __MACOSX -exec rm -rf {} +

0 commit comments

Comments
 (0)