12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- #!/bin/bash
- ###
- # @Descripttion:
- # @version:
- # @Author: Neo,Huang
- # @Date: 2022-01-10 11:54:47
- # @LastEditors: Neo,Huang
- # @LastEditTime: 2022-01-25 11:39:57
- ###
- # 绝对路径
- abspath=$(cd "$(dirname "$0")";pwd)
- source $abspath/func.sh
- set_global
- system=$(uname -s)
- if [ "$system" == "Linux" ] ;then
- platform="linux"
- else
- platform="macosx"
- fi
- logDir=`get_config logpath`
- echo $logDir
- if [ "$platform" == "macosx" ] ;then
- find $logDir -iname '*.log' | xargs rm -f
- find $logDir -iname '*.info' | xargs rm -f
- else
- find $logDir '*.log' | xargs rm -f
- find $logDir '*.info' | xargs rm -f
- fi
- logDir=`get_config statistic_path`
- echo $logDir
- if [ "$platform" == "macosx" ] ;then
- find $logDir -iname '*.log' | xargs rm -f
- find $logDir -iname '*.info' | xargs rm -f
- else
- find $logDir '*.log' | xargs rm -f
- find $logDir '*.info' | xargs rm -f
- fi
- #删除7天之前的埋点打包日期目录
- # zipDir=`get_config zip_statistic_path`
- # find $zipDir -type d -mtime +6 | xargs rm -rf
|