Skip to content

Commit a6bff31

Browse files
committed
fix(install): optimize the configuration of k3s
1 parent db022ca commit a6bff31

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

install.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,9 @@ function upgrade {
737737
echo -e "\\033[32m---> Upgrade complete, enjoy life...\\033[0m"
738738
}
739739

740-
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
740+
if [[ -f /etc/rancher/k3s/k3s.yaml ]] ; then
741+
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
742+
fi
741743

742744
if [[ -z "$@" ]] ; then
743745
check_drycc

0 commit comments

Comments
 (0)