Commit f78fdfca authored by 苗青's avatar 苗青

rm logs 3b

parent d90a86b8
......@@ -52,9 +52,9 @@ if [[ $CLUSTER == "3B" ]]; then
yum install crontabs
# 定时删除日志
daysRetained='10'
deleteLogs()
{
daysRetained='10'
sysName=`cat /home/quant_group/build_info | grep 'SYSTEM_NAME' | awk -F: '{print $2}'`
sysName='xyqb-user2'
crontabCmd="0 1 * * * find "$log_path" -mtime +"$daysRetained" -name '"$sysName".log.*' -exec rm -rf {} \;"
......
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