clear_log.sh 344 B

12345678910111213
  1. #!/bin/bash
  2. # 绝对路径
  3. abspath=$(cd "$(dirname "$0")";pwd)
  4. source $abspath/func.sh
  5. set_global
  6. #删除7天之前的埋点文件
  7. logDir=`get_config statistic_path`
  8. find $logDir -type f -mtime +6 | xargs rm -rf
  9. #删除7天之前的埋点打包日期目录
  10. zipDir=`get_config zip_statistic_path`
  11. find $zipDir -type d -mtime +6 | xargs rm -rf