Commit 4c3a9bf3 authored by 白秀江's avatar 白秀江

Update log_rm.sh

parent f1ab48bb
......@@ -7,7 +7,7 @@ old_day=`date +%Y%m%d -d"-3 days"`
old_history_day=`date +%Y-%m-%d -d"-3 days"`
rm -f /data/api/logs/*-$old_day*
rm -f /data/api/logs/history/$old_history_day
rm -fr /data/api/logs/history/$old_history_day
echo " 删除文件: $filename"
endtime=`date +'%Y-%m-%d %H:%M:%S'`
start_seconds=$(date --date="$starttime" +%s);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment