#!/usr/bin/bash

#Tate:2022.4.25
#Author:Yingjian
#function: 定时清理tomcat manager、localhost_access_log、localhost、host-manager

#same_day=`date +%F`
#echo $same_day
tomcat_log_dir=/opt/zunshang2/logs

find $tomcat_log_dir -type f -mtime +7 -name "*.log" -exec rm -rf {} \;
find $tomcat_log_dir -type f -mtime +7 -name "*.txt" -exec rm -rf {} \;
