半个月删除一次旧包

main
PC-202302260912\Administrator 2023-07-28 16:23:51 +08:00
parent 994a3aa582
commit cd60bede18
1 changed files with 1 additions and 1 deletions

View File

@ -4,4 +4,4 @@
target_dir="/data/update/package"
# 使用find命令找到目标文件并删除超过一个月的文件
find "$target_dir" -maxdepth 1 -type f -mtime +30 -exec rm -f {} \;
find "$target_dir" -maxdepth 1 -type f -mtime +15 -exec rm -f {} \;