5
0
Fork 0

commit by to_remotes 2023-10-05 09:12:08 +0200 from vmdevac

main
ag 2023-10-05 09:12:08 +02:00
parent e33b55b6d5
commit 32173eb68b
2 changed files with 10 additions and 6 deletions

View File

@ -1,3 +1,5 @@
**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
View File

@ -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 -n "init as master? type yes: "
read -r init_as_master
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
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
source $WA_REPO/node_type.sh
echo " "
echo -n "ready to set-up K8s? type yes: "