diff --git a/docker/demo/demo.sh b/docker/demo/demo.sh index 6277c72..c5d00a0 100755 --- a/docker/demo/demo.sh +++ b/docker/demo/demo.sh @@ -21,7 +21,9 @@ curl -sfL https://get.k3s.io | sh - echo "📄 Setting kubeconfig..." mkdir -p ~/.kube -cp ~/.kube/config ~/.kube/old_config | true +if [ -f ~/.kube/config ]; then + cp ~/.kube/config ~/.kube/old_config || true +fi sudo cp /etc/rancher/k3s/k3s.yaml ~/.kube/config export KUBECONFIG=~/.kube/config