From e21aa0fc3bbf4dc5be2b35c910615f9c28922bde Mon Sep 17 00:00:00 2001 From: tteckster Date: Thu, 3 Nov 2022 06:40:09 -0400 Subject: [PATCH] Update alpine-v4.sh set default disk 100 MiB --- ct/alpine-v4.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/ct/alpine-v4.sh b/ct/alpine-v4.sh index 07b4c79d..11f8f2e7 100644 --- a/ct/alpine-v4.sh +++ b/ct/alpine-v4.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash echo -e "Loading..." APP="Alpine" -var_disk="1" +var_disk="0.1" var_cpu="1" var_ram="512" var_os="alpine" @@ -78,7 +78,7 @@ function default_settings() { CT_ID=$NEXTID echo -e "${DGN}Using Hostname: ${BGN}$NSAPP${CL}" HN=$NSAPP - echo -e "${DGN}Using Disk Size: ${BGN}$var_disk${CL}${DGN}GB${CL}" + echo -e "${DGN}Using Disk Size: ${BGN}$var_disk${CL}" DISK_SIZE="$var_disk" echo -e "${DGN}Allocated Cores ${BGN}$var_cpu${CL}" CORE_COUNT="$var_cpu" @@ -142,10 +142,6 @@ function advanced_settings() { echo -e "${DGN}Using Disk Size: ${BGN}$DISK_SIZE${CL}" else if [ $exitstatus = 0 ]; then echo -e "${DGN}Using Disk Size: ${BGN}$DISK_SIZE${CL}"; fi - if ! [[ $DISK_SIZE =~ $INTEGER ]]; then - echo -e "${RD}⚠ DISK SIZE MUST BE A INTEGER NUMBER!${CL}" - advanced_settings - fi fi CORE_COUNT=$(whiptail --inputbox "Allocate CPU Cores" 8 58 $var_cpu --title "CORE COUNT" --cancel-button Exit-Script 3>&1 1>&2 2>&3) exitstatus=$?