Commit 98464956 authored by 白秀江's avatar 白秀江

Update log_rm.sh

parent e8651f9a
......@@ -5,8 +5,8 @@ logdir=/data/api/logs
old_day=`date +%Y%m%d -d"-3 days"`
rm -f /data/api/logs*-$old_day*
rm -f /data/api/logs/history/*-$old_day*
rm -f /data/api/logs/*-$old_day*
rm -f /data/api/logs/history/*$old_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