my_preset/minikubenewpc.sh
2021-02-25 14:10:44 +03:00

23 lines
597 B
Bash
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

pc_name=$HOSTNAME
echo "Запускаем установку minikube для $pc_name\n" | sed 's/.kzn.21-school.ru//'
if brew ls --versions > /dev/null; then
echo "все отлично\n"
cd ~
else
echo "Придется поставить\n"
curl -fsSL https://rawgit.com/kube/42homebrew/master/install.sh | zsh
cd ~
fi
minikube delete
rm -rf ~/.minikube
rm -rf ~/goinfre/.minikube
brew remove minikube
brew install minikube
cd ~
brew unlink minikube
brew link minikube
mkdir -p .minikube
mv .minikube ./goinfre
ln -s ./goinfre/.minikube .minikube
minikube start --vm-driver=virtualbox