commit by to_remotes 2023-10-05 09:12:08 +0200 from vmdevac
parent
e33b55b6d5
commit
32173eb68b
|
|
@ -1,3 +1,5 @@
|
||||||
**usage**
|
**usage**
|
||||||
|
|
||||||
zsh <(curl -s https://git.service.wiseadvice.eu/wiseadvice_public_repos/wa_public_init_repo/raw/branch/main/init.sh)
|
#zsh <(curl -sk http://git.service.wiseadvice.eu:3000/wiseadvice_public_repos/wa_public_init_repo/raw/branch/main/init.sh)
|
||||||
|
|
||||||
|
curl -sk http://git.service.wiseadvice.eu:3000/wiseadvice_public_repos/wa_public_init_repo/raw/branch/main/init.sh | zsh
|
||||||
12
init.sh
12
init.sh
|
|
@ -106,20 +106,22 @@ fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if [ ! -f $WA_REPO/node_type.sh ]; then
|
if [ -f $WA_REPO/node_type.sh ]; then
|
||||||
|
source $WA_REPO/node_type.sh
|
||||||
|
else
|
||||||
echo " "
|
echo " "
|
||||||
echo -n "init as master? type yes: "
|
echo -n "init as master? type yes: "
|
||||||
read -r init_as_master
|
read -r init_as_master
|
||||||
|
|
||||||
if [ "$init_as_master" == "yes" ]; then
|
if [ "$init_as_master" == "yes" ]; then
|
||||||
echo "export NODE_TYPE=master" > $WA_REPO/node_type.sh
|
echo -n "export NODE_TYPE=master" > $WA_REPO/node_type.sh
|
||||||
|
NODE_TYPE=master
|
||||||
else
|
else
|
||||||
echo "export NODE_TYPE=worker" > $WA_REPO/node_type.sh
|
echo -n "export NODE_TYPE=worker" > $WA_REPO/node_type.sh
|
||||||
|
NODE_TYPE=worker
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
source $WA_REPO/node_type.sh
|
|
||||||
|
|
||||||
|
|
||||||
echo " "
|
echo " "
|
||||||
echo -n "ready to set-up K8s? type yes: "
|
echo -n "ready to set-up K8s? type yes: "
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue