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

更新log_history_rm.sh

parent e9fbe8a8
......@@ -3,7 +3,7 @@ starttime=`date +'%Y-%m-%d %H:%M:%S'`
logdir=$1
old_day=`date +%Y-%m-%d -d"-7 days"`
filename=$logdir/*-$old_day*
filename=$logdir/*$old_day*
rm -f $filename
echo " 删除文件: $filename"
......
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