From 336ac63620635ee67d1e23b6fcbed90fd92e439a Mon Sep 17 00:00:00 2001 From: wingyao666 <52908251+wingyao666@users.noreply.github.com> Date: Fri, 20 Sep 2024 11:41:58 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=A6=BB=E7=BA=BF=E9=83=A8=E5=88=86?= =?UTF-8?q?=E9=80=BB=E8=BE=91=E4=BF=AE=E5=A4=8D=20TencentBlueKing#2347=20(?= =?UTF-8?q?#3531)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bcs-ops/system/init_host.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bcs-ops/system/init_host.sh b/bcs-ops/system/init_host.sh index 65d5f0e9bf..84d09d02e9 100644 --- a/bcs-ops/system/init_host.sh +++ b/bcs-ops/system/init_host.sh @@ -23,7 +23,12 @@ BASE_EPEL_LINK="http://mirrors.cloud.tencent.com/repo/epel-7.repo" BACKUPTIME=$(date +%Y%m%d_%H%M) RPM_LIST=(utpdate chrony screen pssh yq parallel zip unzip rsync gawk curl lsof tar sed iproute uuid psmisc wget rsync jq expect uuid bash-completion lsof openssl-devel readline-devel libcurl-devel libxml2-devel glibc-devel zlib-devel iproute procps-ng bind-utils) NTP_SEVER="cn.pool.ntp.org" -SET_LIST=(set_kernel_params set_ulimit set_hostname set_selinux close_swap stop_firewalld set_yum_repo install_tools set_time_sync) +if [[ -n ${BCS_OFFLINE:-} ]]; then + SET_LIST=(set_kernel_params set_ulimit set_hostname set_selinux close_swap stop_firewalld install_tools) + +else + SET_LIST=(set_kernel_params set_ulimit set_hostname set_selinux close_swap stop_firewalld set_yum_repo install_tools set_time_sync) +fi log() { echo "$@"