Inital Commit
All checks were successful
Trash Bin / Trash Bin [arm64] (push) Successful in 11s
Trash Bin / Trash Bin [amd64] (push) Successful in 11s

This commit is contained in:
Cantibra
2025-10-26 21:11:06 +01:00
commit 3c4be080d5
13 changed files with 889 additions and 0 deletions

17
root/etc/cron.d/trash-bin Normal file
View File

@@ -0,0 +1,17 @@
# /etc/cron.d/trash-bin
SHELL=/usr/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
# * * * * * user command to execute
# | | | | |
# | | | | |
# | | | | |_______________ day of week (0 - 6) (0 to 6 are Sunday to Saturday, or use names; 7 is Sunday, the same as 0)
# | | | |______________________ month (1 - 12)
# | | |_____________________________ day of month (1 - 31)
# | |____________________________________ hour (0 - 23)
# |___________________________________________ min (0 - 59)
#
0 0 * * * root if [ -d '/run/systemd/system' ]; then exit 0; fi; /usr/bin/find '/var/trash/'*/* -maxdepth '0' -mtime '+7' -exec /usr/bin/rm --force --recursive {} \;;
#