Update haos-vm.sh

This commit is contained in:
tteckster 2022-04-16 17:21:33 -04:00 committed by GitHub
parent 6d804617b2
commit d5891a8e0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -51,7 +51,7 @@ function default_settings() {
echo -e "${DGN}Using ID ${BGN}$NEXTID${CL}" echo -e "${DGN}Using ID ${BGN}$NEXTID${CL}"
VM_ID=$NEXTID VM_ID=$NEXTID
echo -e "${DGN}Using Disk Size ${BGN}32GB${CL}" echo -e "${DGN}Using Disk Size ${BGN}32GB${CL}"
DISK_SIZE="32" DISK_SIZE=16
echo -e "${DGN}Using ${BGN}2vCPU${CL}" echo -e "${DGN}Using ${BGN}2vCPU${CL}"
CORE_COUNT="2" CORE_COUNT="2"
echo -e "${DGN}Using ${BGN}4096MiB${CL}${GN} RAM${CL}" echo -e "${DGN}Using ${BGN}4096MiB${CL}${GN} RAM${CL}"
@ -73,7 +73,7 @@ header_info
echo -e "${DGN}Using ID ${BGN}$VM_ID${CL}" echo -e "${DGN}Using ID ${BGN}$VM_ID${CL}"
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 32Gb " echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 32Gb "
read DISK_SIZE read DISK_SIZE
if [ -z $DISK_SIZE ]; then DISK_SIZE="32"; fi; if [ -z $DISK_SIZE ]; then DISK_SIZE=32; fi;
if ! [[ $DISK_SIZE =~ $INTEGER ]] ; then echo "ERROR! DISK SIZE MUST HAVE INTEGER NUMBER!"; exit; fi; if ! [[ $DISK_SIZE =~ $INTEGER ]] ; then echo "ERROR! DISK SIZE MUST HAVE INTEGER NUMBER!"; exit; fi;
echo -en "${DGN}Set Disk Size To ${BL}$DISK_SIZE${CL}" echo -en "${DGN}Set Disk Size To ${BL}$DISK_SIZE${CL}"
echo -e " ${CM}${CL} \r" echo -e " ${CM}${CL} \r"
@ -107,7 +107,7 @@ header_info
echo -e "${DGN}Using ID ${BGN}$VM_ID${CL}" echo -e "${DGN}Using ID ${BGN}$VM_ID${CL}"
echo -e "${DGN}Using Disk Size ${BGN}${DISK_SIZE}GB${CL}" echo -e "${DGN}Using Disk Size ${BGN}${DISK_SIZE}GB${CL}"
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}" echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${GN} RAM${CL}" echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
read -p "Are these settings correct(y/n)? " -n 1 -r read -p "Are these settings correct(y/n)? " -n 1 -r
echo echo