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