From bbbd644c8800840f20fdb1508b024fb3d8ec0771 Mon Sep 17 00:00:00 2001 From: zhanglikun Date: Tue, 12 Sep 2023 17:48:48 +0800 Subject: [PATCH] fix --- scripts/2-create_k8s.sh | 3 --- single.sh | 5 +---- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/scripts/2-create_k8s.sh b/scripts/2-create_k8s.sh index 1716395..68d425e 100755 --- a/scripts/2-create_k8s.sh +++ b/scripts/2-create_k8s.sh @@ -1,9 +1,6 @@ #!/bin/bash set -euo pipefail -source .env - - apiserver="__API_SERVER__" diff --git a/single.sh b/single.sh index 925ad73..48e8d41 100644 --- a/single.sh +++ b/single.sh @@ -8,11 +8,8 @@ if [ $(id -u) != "0" ]; then exit 1 fi -source .env - - cd scripts ./1-init.sh -sed -e "s/__API_SERVER__/${VIP}/g" -i 2-create_k8s.sh +sed -e "s/^apiserver=.*/apiserver=${VIP}/g" -i 2-create_k8s.sh ./2-create_k8s.sh ./3-nginx_ingress.sh