Skip to content

Commit e588fb5

Browse files
committed
chore(workflow): add more log for install.sh
1 parent 6107313 commit e588fb5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

_scripts/install.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ function install_helm {
6363
}
6464

6565
function configure_os {
66+
echo -e "\\033[32m---> Start configuring kernel parameters\\033[0m"
6667
if [[ "$(command -v iptables)" != "" ]] ; then
6768
iptables -F
6869
iptables -X
@@ -83,6 +84,7 @@ function configure_os {
8384
echo 'vm.nr_hugepages = 1024' >> /etc/sysctl.conf
8485
fi
8586
sysctl -p
87+
echo -e "\\033[32m---> Configuring kernel parameters finish\\033[0m"
8688
}
8789

8890
function configure_registries {
@@ -133,6 +135,7 @@ EOF
133135
}
134136

135137
function configure_mirrors {
138+
echo -e "\\033[32m---> Start configuring mirrors\\033[0m"
136139
configure_registries
137140
if [[ "${INSTALL_DRYCC_MIRROR}" == "cn" ]] ; then
138141
INSTALL_K3S_MIRROR="${INSTALL_DRYCC_MIRROR}"
@@ -145,6 +148,7 @@ function configure_mirrors {
145148
fi
146149
INSTALL_K3S_VERSION=$(curl -Ls "$K3S_RELEASE_URL" | grep /k3s-io/k3s/releases/tag/ | sed -E 's/.*\/k3s-io\/k3s\/releases\/tag\/(v[0-9\.]{1,}[rc0-9\-]{0,}%2Bk3s[0-9])".*/\1/g' | head -1)
147150
export INSTALL_K3S_VERSION
151+
echo -e "\\033[32m---> Configuring mirrors finish\\033[0m"
148152
}
149153

150154
function install_k3s_server {

0 commit comments

Comments
 (0)