Commit 8e85ab28 authored by 苗青's avatar 苗青

crontab

parent 21217f73
...@@ -27,6 +27,9 @@ if [[ $CLUSTER == "3B" ]]; then ...@@ -27,6 +27,9 @@ 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
...@@ -48,9 +51,6 @@ if [[ $CLUSTER == "3B" ]]; then ...@@ -48,9 +51,6 @@ 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
echo "start yum\n"
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