diff --git a/scripts/createVm.sh b/scripts/createVm.sh index 457671f..7418762 100644 --- a/scripts/createVm.sh +++ b/scripts/createVm.sh @@ -40,6 +40,10 @@ action=$1 NETWORK=$2 + if [ "Gangammals-Mini.heaerieglobalsolutions.net" == "$currentHost" ] + then + HOSTMACHINE="mc03" + fi if [ "Shanthys-Mini.heaerieglobalsolutions.net" == "$currentHost" ] then HOSTMACHINE="mc02" diff --git a/scripts/multipassInstallPreRequired.sh b/scripts/multipassInstallPreRequired.sh index 4a1eb58..7a3098c 100644 --- a/scripts/multipassInstallPreRequired.sh +++ b/scripts/multipassInstallPreRequired.sh @@ -56,6 +56,12 @@ #ssh-keyscan us-mc02-pac-mp-ub2204-en0-kubeadm-2 >> $HOME/.ssh/known_hosts done } +#Main +if [ "$root_password" == "" ] +then + echo "Please export root_password" + exit 1 +fi for host in `cat hosts` do