Skip to content

Commit

Permalink
feat: 离线部分逻辑修复 #2347 (#3531)
Browse files Browse the repository at this point in the history
  • Loading branch information
wingyao666 committed Sep 20, 2024
1 parent 3ab3365 commit 336ac63
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bcs-ops/system/init_host.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "$@"
Expand Down

0 comments on commit 336ac63

Please sign in to comment.