Commit 85139e3a authored by 苗青's avatar 苗青

crontab

parent 8e85ab28
...@@ -27,9 +27,6 @@ if [[ $CLUSTER == "3B" ]]; then ...@@ -27,9 +27,6 @@ if [[ $CLUSTER == "3B" ]]; then
sleep 1 sleep 1
done done
# 安装 crontab TODO apt or yum
yum install -y crontabs
# 安装filebeat # 安装filebeat
PULL_TAR=http://192.168.3.60/QA/qg-docker-entrypoints/raw/master/other/filebeat/filebeat.tgz PULL_TAR=http://192.168.3.60/QA/qg-docker-entrypoints/raw/master/other/filebeat/filebeat.tgz
TAR_PACKAGE=filebeat.tgz TAR_PACKAGE=filebeat.tgz
...@@ -51,6 +48,8 @@ if [[ $CLUSTER == "3B" ]]; then ...@@ -51,6 +48,8 @@ if [[ $CLUSTER == "3B" ]]; then
echo "tail -f $log_path/*log" echo "tail -f $log_path/*log"
tail -f $log_path/*log tail -f $log_path/*log
# 安装 crontab TODO apt or yum
/bin/yum install -y crontabs
# 定时删除日志 # 定时删除日志
deleteLogs() deleteLogs()
......
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