mirror of https://github.com/tteck/Proxmox.git
commit
dc85def2d6
|
@ -73,11 +73,11 @@ function default_settings() {
|
||||||
CT_ID=$NEXTID
|
CT_ID=$NEXTID
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
||||||
HN=$NSAPP
|
HN=$NSAPP
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}2GB${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}2${CL}${DGN}GB${CL}"
|
||||||
DISK_SIZE="2"
|
DISK_SIZE="2"
|
||||||
echo -e "${DGN}Using ${BGN}1vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}1${CL}${DGN}vCPU${CL}"
|
||||||
CORE_COUNT="1"
|
CORE_COUNT="1"
|
||||||
echo -e "${DGN}Using ${BGN}512MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}512${CL}${DGN}MiB RAM${CL}"
|
||||||
RAM_SIZE="512"
|
RAM_SIZE="512"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
||||||
BRG="vmbr0"
|
BRG="vmbr0"
|
||||||
|
@ -152,11 +152,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 2Gb "
|
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 2 "
|
||||||
read DISK_SIZE
|
read DISK_SIZE
|
||||||
if [ -z $DISK_SIZE ]; then DISK_SIZE="2"; fi;
|
if [ -z $DISK_SIZE ]; then DISK_SIZE="2"; 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}${DGN}GB${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -166,11 +166,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 1 "
|
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 1 "
|
||||||
read CORE_COUNT
|
read CORE_COUNT
|
||||||
if [ -z $CORE_COUNT ]; then CORE_COUNT="1"; fi;
|
if [ -z $CORE_COUNT ]; then CORE_COUNT="1"; fi;
|
||||||
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}"
|
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}${DGN}vCPU${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -180,12 +180,12 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 512 "
|
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 512 "
|
||||||
read RAM_SIZE
|
read RAM_SIZE
|
||||||
if [ -z $RAM_SIZE ]; then RAM_SIZE="512"; fi;
|
if [ -z $RAM_SIZE ]; then RAM_SIZE="512"; fi;
|
||||||
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}"
|
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e " ${CM}${CL} \n"
|
echo -e " ${CM}${CL} \n"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -195,9 +195,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
||||||
read BRG
|
read BRG
|
||||||
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
||||||
|
@ -211,9 +211,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
||||||
read NET
|
read NET
|
||||||
|
@ -228,9 +228,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
||||||
|
@ -251,9 +251,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
@ -274,9 +274,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
|
|
@ -73,11 +73,11 @@ function default_settings() {
|
||||||
CT_ID=$NEXTID
|
CT_ID=$NEXTID
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
||||||
HN=$NSAPP
|
HN=$NSAPP
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}8GB${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}8${CL}${DGN}GB${CL}"
|
||||||
DISK_SIZE="8"
|
DISK_SIZE="8"
|
||||||
echo -e "${DGN}Using ${BGN}1vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}1${CL}${DGN}vCPU${CL}"
|
||||||
CORE_COUNT="1"
|
CORE_COUNT="1"
|
||||||
echo -e "${DGN}Using ${BGN}512MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}512${CL}${DGN}MiB RAM${CL}"
|
||||||
RAM_SIZE="512"
|
RAM_SIZE="512"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
||||||
BRG="vmbr0"
|
BRG="vmbr0"
|
||||||
|
@ -152,11 +152,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 8Gb "
|
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 8 "
|
||||||
read DISK_SIZE
|
read DISK_SIZE
|
||||||
if [ -z $DISK_SIZE ]; then DISK_SIZE="8"; fi;
|
if [ -z $DISK_SIZE ]; then DISK_SIZE="8"; 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}${DGN}GB${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -166,11 +166,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 1 "
|
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 1 "
|
||||||
read CORE_COUNT
|
read CORE_COUNT
|
||||||
if [ -z $CORE_COUNT ]; then CORE_COUNT="1"; fi;
|
if [ -z $CORE_COUNT ]; then CORE_COUNT="1"; fi;
|
||||||
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}"
|
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}${DGN}vCPU${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -180,12 +180,12 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 512 "
|
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 512 "
|
||||||
read RAM_SIZE
|
read RAM_SIZE
|
||||||
if [ -z $RAM_SIZE ]; then RAM_SIZE="512"; fi;
|
if [ -z $RAM_SIZE ]; then RAM_SIZE="512"; fi;
|
||||||
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}"
|
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e " ${CM}${CL} \n"
|
echo -e " ${CM}${CL} \n"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -195,9 +195,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
||||||
read BRG
|
read BRG
|
||||||
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
||||||
|
@ -211,9 +211,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
||||||
read NET
|
read NET
|
||||||
|
@ -228,9 +228,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
||||||
|
@ -251,9 +251,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
@ -274,9 +274,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
|
|
@ -73,11 +73,11 @@ function default_settings() {
|
||||||
CT_ID=$NEXTID
|
CT_ID=$NEXTID
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
||||||
HN=$NSAPP
|
HN=$NSAPP
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}3GB${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}3${CL}${DGN}GB${CL}"
|
||||||
DISK_SIZE="3"
|
DISK_SIZE="3"
|
||||||
echo -e "${DGN}Using ${BGN}2vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}2${CL}${DGN}vCPU${CL}"
|
||||||
CORE_COUNT="2"
|
CORE_COUNT="2"
|
||||||
echo -e "${DGN}Using ${BGN}2048MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}2048${CL}${DGN}MiB RAM${CL}"
|
||||||
RAM_SIZE="2048"
|
RAM_SIZE="2048"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
||||||
BRG="vmbr0"
|
BRG="vmbr0"
|
||||||
|
@ -152,11 +152,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 3Gb "
|
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 3 "
|
||||||
read DISK_SIZE
|
read DISK_SIZE
|
||||||
if [ -z $DISK_SIZE ]; then DISK_SIZE="3"; fi;
|
if [ -z $DISK_SIZE ]; then DISK_SIZE="3"; 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}${DGN}GB${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -166,11 +166,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 2 "
|
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 2 "
|
||||||
read CORE_COUNT
|
read CORE_COUNT
|
||||||
if [ -z $CORE_COUNT ]; then CORE_COUNT="2"; fi;
|
if [ -z $CORE_COUNT ]; then CORE_COUNT="2"; fi;
|
||||||
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}"
|
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}${DGN}vCPU${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -180,12 +180,12 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 2048 "
|
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 2048 "
|
||||||
read RAM_SIZE
|
read RAM_SIZE
|
||||||
if [ -z $RAM_SIZE ]; then RAM_SIZE="2048"; fi;
|
if [ -z $RAM_SIZE ]; then RAM_SIZE="2048"; fi;
|
||||||
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}"
|
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e " ${CM}${CL} \n"
|
echo -e " ${CM}${CL} \n"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -195,9 +195,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
||||||
read BRG
|
read BRG
|
||||||
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
||||||
|
@ -211,9 +211,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
||||||
read NET
|
read NET
|
||||||
|
@ -228,9 +228,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
||||||
|
@ -251,9 +251,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
@ -274,9 +274,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
|
|
@ -71,11 +71,11 @@ function default_settings() {
|
||||||
CT_ID=$NEXTID
|
CT_ID=$NEXTID
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
||||||
HN=$NSAPP
|
HN=$NSAPP
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}2GB${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}2${CL}${DGN}GB${CL}"
|
||||||
DISK_SIZE="2"
|
DISK_SIZE="2"
|
||||||
echo -e "${DGN}Using ${BGN}1vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}1${CL}${DGN}vCPU${CL}"
|
||||||
CORE_COUNT="1"
|
CORE_COUNT="1"
|
||||||
echo -e "${DGN}Using ${BGN}512MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}512${CL}${DGN}MiB RAM${CL}"
|
||||||
RAM_SIZE="512"
|
RAM_SIZE="512"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
||||||
BRG="vmbr0"
|
BRG="vmbr0"
|
||||||
|
@ -150,11 +150,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 2Gb "
|
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 2 "
|
||||||
read DISK_SIZE
|
read DISK_SIZE
|
||||||
if [ -z $DISK_SIZE ]; then DISK_SIZE="2"; fi;
|
if [ -z $DISK_SIZE ]; then DISK_SIZE="2"; 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}${DGN}GB${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -164,11 +164,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 1 "
|
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 1 "
|
||||||
read CORE_COUNT
|
read CORE_COUNT
|
||||||
if [ -z $CORE_COUNT ]; then CORE_COUNT="1"; fi;
|
if [ -z $CORE_COUNT ]; then CORE_COUNT="1"; fi;
|
||||||
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}"
|
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}${DGN}vCPU${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -178,12 +178,12 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 512 "
|
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 512 "
|
||||||
read RAM_SIZE
|
read RAM_SIZE
|
||||||
if [ -z $RAM_SIZE ]; then RAM_SIZE="512"; fi;
|
if [ -z $RAM_SIZE ]; then RAM_SIZE="512"; fi;
|
||||||
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}"
|
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e " ${CM}${CL} \n"
|
echo -e " ${CM}${CL} \n"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -193,9 +193,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
||||||
read BRG
|
read BRG
|
||||||
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
||||||
|
@ -209,9 +209,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
||||||
read NET
|
read NET
|
||||||
|
@ -226,9 +226,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
||||||
|
@ -249,9 +249,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
@ -272,9 +272,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
|
|
@ -70,11 +70,11 @@ function default_settings() {
|
||||||
CT_ID=$NEXTID
|
CT_ID=$NEXTID
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
||||||
HN=$NSAPP
|
HN=$NSAPP
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}4GB${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}4${CL}${DGN}GB${CL}"
|
||||||
DISK_SIZE="4"
|
DISK_SIZE="4"
|
||||||
echo -e "${DGN}Using ${BGN}2vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}2${CL}${DGN}vCPU${CL}"
|
||||||
CORE_COUNT="2"
|
CORE_COUNT="2"
|
||||||
echo -e "${DGN}Using ${BGN}2048MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}2048${CL}${DGN}MiB RAM${CL}"
|
||||||
RAM_SIZE="2048"
|
RAM_SIZE="2048"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
||||||
BRG="vmbr0"
|
BRG="vmbr0"
|
||||||
|
@ -149,11 +149,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 4Gb "
|
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 4 "
|
||||||
read DISK_SIZE
|
read DISK_SIZE
|
||||||
if [ -z $DISK_SIZE ]; then DISK_SIZE="4"; fi;
|
if [ -z $DISK_SIZE ]; then DISK_SIZE="4"; 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}${DGN}GB${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -163,11 +163,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 2 "
|
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 2 "
|
||||||
read CORE_COUNT
|
read CORE_COUNT
|
||||||
if [ -z $CORE_COUNT ]; then CORE_COUNT="2"; fi;
|
if [ -z $CORE_COUNT ]; then CORE_COUNT="2"; fi;
|
||||||
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}"
|
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}${DGN}vCPU${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -177,12 +177,12 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 2048 "
|
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 2048 "
|
||||||
read RAM_SIZE
|
read RAM_SIZE
|
||||||
if [ -z $RAM_SIZE ]; then RAM_SIZE="2048"; fi;
|
if [ -z $RAM_SIZE ]; then RAM_SIZE="2048"; fi;
|
||||||
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}"
|
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e " ${CM}${CL} \n"
|
echo -e " ${CM}${CL} \n"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -192,9 +192,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
||||||
read BRG
|
read BRG
|
||||||
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
||||||
|
@ -208,9 +208,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
||||||
read NET
|
read NET
|
||||||
|
@ -225,9 +225,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
||||||
|
@ -248,9 +248,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
@ -271,9 +271,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
|
|
@ -72,11 +72,11 @@ function default_settings() {
|
||||||
CT_ID=$NEXTID
|
CT_ID=$NEXTID
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
||||||
HN=$NSAPP
|
HN=$NSAPP
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}4GB${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}4${CL}${DGN}GB${CL}"
|
||||||
DISK_SIZE="4"
|
DISK_SIZE="4"
|
||||||
echo -e "${DGN}Using ${BGN}2vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}2${CL}${DGN}vCPU${CL}"
|
||||||
CORE_COUNT="2"
|
CORE_COUNT="2"
|
||||||
echo -e "${DGN}Using ${BGN}1024MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}1024${CL}${DGN}MiB RAM${CL}"
|
||||||
RAM_SIZE="1024"
|
RAM_SIZE="1024"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
||||||
BRG="vmbr0"
|
BRG="vmbr0"
|
||||||
|
@ -151,11 +151,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 4Gb "
|
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 4 "
|
||||||
read DISK_SIZE
|
read DISK_SIZE
|
||||||
if [ -z $DISK_SIZE ]; then DISK_SIZE="4"; fi;
|
if [ -z $DISK_SIZE ]; then DISK_SIZE="4"; 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}${DGN}GB${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -165,11 +165,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 2 "
|
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 2 "
|
||||||
read CORE_COUNT
|
read CORE_COUNT
|
||||||
if [ -z $CORE_COUNT ]; then CORE_COUNT="2"; fi;
|
if [ -z $CORE_COUNT ]; then CORE_COUNT="2"; fi;
|
||||||
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}"
|
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}${DGN}vCPU${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -179,12 +179,12 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 1024 "
|
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 1024 "
|
||||||
read RAM_SIZE
|
read RAM_SIZE
|
||||||
if [ -z $RAM_SIZE ]; then RAM_SIZE="1024"; fi;
|
if [ -z $RAM_SIZE ]; then RAM_SIZE="1024"; fi;
|
||||||
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}"
|
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e " ${CM}${CL} \n"
|
echo -e " ${CM}${CL} \n"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -194,9 +194,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
||||||
read BRG
|
read BRG
|
||||||
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
||||||
|
@ -210,9 +210,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
||||||
read NET
|
read NET
|
||||||
|
@ -227,9 +227,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
||||||
|
@ -250,9 +250,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
@ -273,9 +273,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
|
|
@ -71,11 +71,11 @@ function default_settings() {
|
||||||
CT_ID=$NEXTID
|
CT_ID=$NEXTID
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
||||||
HN=$NSAPP
|
HN=$NSAPP
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}2GB${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}2${CL}${DGN}GB${CL}"
|
||||||
DISK_SIZE="2"
|
DISK_SIZE="2"
|
||||||
echo -e "${DGN}Using ${BGN}1vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}1${CL}${DGN}vCPU${CL}"
|
||||||
CORE_COUNT="1"
|
CORE_COUNT="1"
|
||||||
echo -e "${DGN}Using ${BGN}512MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}512${CL}${DGN}MiB RAM${CL}"
|
||||||
RAM_SIZE="512"
|
RAM_SIZE="512"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
||||||
BRG="vmbr0"
|
BRG="vmbr0"
|
||||||
|
@ -150,11 +150,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 2Gb "
|
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 2 "
|
||||||
read DISK_SIZE
|
read DISK_SIZE
|
||||||
if [ -z $DISK_SIZE ]; then DISK_SIZE="2"; fi;
|
if [ -z $DISK_SIZE ]; then DISK_SIZE="2"; 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}${DGN}GB${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -164,11 +164,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 1 "
|
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 1 "
|
||||||
read CORE_COUNT
|
read CORE_COUNT
|
||||||
if [ -z $CORE_COUNT ]; then CORE_COUNT="1"; fi;
|
if [ -z $CORE_COUNT ]; then CORE_COUNT="1"; fi;
|
||||||
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}"
|
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}${DGN}vCPU${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -178,12 +178,12 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 512 "
|
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 512 "
|
||||||
read RAM_SIZE
|
read RAM_SIZE
|
||||||
if [ -z $RAM_SIZE ]; then RAM_SIZE="512"; fi;
|
if [ -z $RAM_SIZE ]; then RAM_SIZE="512"; fi;
|
||||||
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}"
|
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e " ${CM}${CL} \n"
|
echo -e " ${CM}${CL} \n"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -193,9 +193,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
||||||
read BRG
|
read BRG
|
||||||
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
||||||
|
@ -209,9 +209,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
||||||
read NET
|
read NET
|
||||||
|
@ -226,9 +226,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
||||||
|
@ -249,9 +249,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
@ -272,9 +272,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
|
|
@ -72,11 +72,11 @@ function default_settings() {
|
||||||
CT_ID=$NEXTID
|
CT_ID=$NEXTID
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
||||||
HN=$NSAPP
|
HN=$NSAPP
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}2GB${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}2${CL}${DGN}GB${CL}"
|
||||||
DISK_SIZE="2"
|
DISK_SIZE="2"
|
||||||
echo -e "${DGN}Using ${BGN}1vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}1${CL}${DGN}vCPU${CL}"
|
||||||
CORE_COUNT="1"
|
CORE_COUNT="1"
|
||||||
echo -e "${DGN}Using ${BGN}512MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}512${CL}${DGN}MiB RAM${CL}"
|
||||||
RAM_SIZE="512"
|
RAM_SIZE="512"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
||||||
BRG="vmbr0"
|
BRG="vmbr0"
|
||||||
|
@ -151,11 +151,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 2Gb "
|
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 2 "
|
||||||
read DISK_SIZE
|
read DISK_SIZE
|
||||||
if [ -z $DISK_SIZE ]; then DISK_SIZE="2"; fi;
|
if [ -z $DISK_SIZE ]; then DISK_SIZE="2"; 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}${DGN}GB${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -165,11 +165,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 1 "
|
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 1 "
|
||||||
read CORE_COUNT
|
read CORE_COUNT
|
||||||
if [ -z $CORE_COUNT ]; then CORE_COUNT="1"; fi;
|
if [ -z $CORE_COUNT ]; then CORE_COUNT="1"; fi;
|
||||||
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}"
|
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}${DGN}vCPU${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -179,12 +179,12 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 512 "
|
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 512 "
|
||||||
read RAM_SIZE
|
read RAM_SIZE
|
||||||
if [ -z $RAM_SIZE ]; then RAM_SIZE="512"; fi;
|
if [ -z $RAM_SIZE ]; then RAM_SIZE="512"; fi;
|
||||||
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}"
|
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e " ${CM}${CL} \n"
|
echo -e " ${CM}${CL} \n"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -194,9 +194,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
||||||
read BRG
|
read BRG
|
||||||
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
||||||
|
@ -210,9 +210,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
||||||
read NET
|
read NET
|
||||||
|
@ -227,9 +227,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
||||||
|
@ -250,9 +250,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
@ -273,9 +273,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
|
|
@ -70,11 +70,11 @@ function default_settings() {
|
||||||
CT_ID=$NEXTID
|
CT_ID=$NEXTID
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
||||||
HN=$NSAPP
|
HN=$NSAPP
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}16GB${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}16${CL}${DGN}GB${CL}"
|
||||||
DISK_SIZE="16"
|
DISK_SIZE="16"
|
||||||
echo -e "${DGN}Using ${BGN}2vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}2${CL}${DGN}vCPU${CL}"
|
||||||
CORE_COUNT="2"
|
CORE_COUNT="2"
|
||||||
echo -e "${DGN}Using ${BGN}2048MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}2048${CL}${DGN}MiB RAM${CL}"
|
||||||
RAM_SIZE="2048"
|
RAM_SIZE="2048"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
||||||
BRG="vmbr0"
|
BRG="vmbr0"
|
||||||
|
@ -149,11 +149,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 16Gb "
|
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 16 "
|
||||||
read DISK_SIZE
|
read DISK_SIZE
|
||||||
if [ -z $DISK_SIZE ]; then DISK_SIZE="16"; fi;
|
if [ -z $DISK_SIZE ]; then DISK_SIZE="16"; 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}${DGN}GB${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -163,11 +163,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 2 "
|
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 2 "
|
||||||
read CORE_COUNT
|
read CORE_COUNT
|
||||||
if [ -z $CORE_COUNT ]; then CORE_COUNT="2"; fi;
|
if [ -z $CORE_COUNT ]; then CORE_COUNT="2"; fi;
|
||||||
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}"
|
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}${DGN}vCPU${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -177,12 +177,12 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 2048 "
|
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 2048 "
|
||||||
read RAM_SIZE
|
read RAM_SIZE
|
||||||
if [ -z $RAM_SIZE ]; then RAM_SIZE="2048"; fi;
|
if [ -z $RAM_SIZE ]; then RAM_SIZE="2048"; fi;
|
||||||
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}"
|
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e " ${CM}${CL} \n"
|
echo -e " ${CM}${CL} \n"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -192,9 +192,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
||||||
read BRG
|
read BRG
|
||||||
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
||||||
|
@ -208,9 +208,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
||||||
read NET
|
read NET
|
||||||
|
@ -225,9 +225,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
||||||
|
@ -248,9 +248,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
@ -271,9 +271,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
|
|
@ -71,11 +71,11 @@ function default_settings() {
|
||||||
CT_ID=$NEXTID
|
CT_ID=$NEXTID
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
||||||
HN=$NSAPP
|
HN=$NSAPP
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}4GB${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}4${CL}${DGN}GB${CL}"
|
||||||
DISK_SIZE="4"
|
DISK_SIZE="4"
|
||||||
echo -e "${DGN}Using ${BGN}1vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}1${CL}${DGN}vCPU${CL}"
|
||||||
CORE_COUNT="1"
|
CORE_COUNT="1"
|
||||||
echo -e "${DGN}Using ${BGN}1024MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}1024${CL}${DGN}MiB RAM${CL}"
|
||||||
RAM_SIZE="1024"
|
RAM_SIZE="1024"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
||||||
BRG="vmbr0"
|
BRG="vmbr0"
|
||||||
|
@ -150,11 +150,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 4Gb "
|
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 4 "
|
||||||
read DISK_SIZE
|
read DISK_SIZE
|
||||||
if [ -z $DISK_SIZE ]; then DISK_SIZE="4"; fi;
|
if [ -z $DISK_SIZE ]; then DISK_SIZE="4"; 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}${DGN}GB${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -164,11 +164,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 1 "
|
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 1 "
|
||||||
read CORE_COUNT
|
read CORE_COUNT
|
||||||
if [ -z $CORE_COUNT ]; then CORE_COUNT="1"; fi;
|
if [ -z $CORE_COUNT ]; then CORE_COUNT="1"; fi;
|
||||||
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}"
|
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}${DGN}vCPU${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -178,12 +178,12 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 1024 "
|
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 1024 "
|
||||||
read RAM_SIZE
|
read RAM_SIZE
|
||||||
if [ -z $RAM_SIZE ]; then RAM_SIZE="1024"; fi;
|
if [ -z $RAM_SIZE ]; then RAM_SIZE="1024"; fi;
|
||||||
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}"
|
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e " ${CM}${CL} \n"
|
echo -e " ${CM}${CL} \n"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -193,9 +193,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
||||||
read BRG
|
read BRG
|
||||||
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
||||||
|
@ -209,9 +209,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
||||||
read NET
|
read NET
|
||||||
|
@ -226,9 +226,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
||||||
|
@ -249,9 +249,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
@ -272,9 +272,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
|
|
@ -72,11 +72,11 @@ function default_settings() {
|
||||||
CT_ID=$NEXTID
|
CT_ID=$NEXTID
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
||||||
HN=$NSAPP
|
HN=$NSAPP
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}8GB${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}8${CL}${DGN}GB${CL}"
|
||||||
DISK_SIZE="8"
|
DISK_SIZE="8"
|
||||||
echo -e "${DGN}Using ${BGN}2vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}2${CL}${DGN}vCPU${CL}"
|
||||||
CORE_COUNT="2"
|
CORE_COUNT="2"
|
||||||
echo -e "${DGN}Using ${BGN}2048MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}2048${CL}${DGN}MiB RAM${CL}"
|
||||||
RAM_SIZE="2048"
|
RAM_SIZE="2048"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
||||||
BRG="vmbr0"
|
BRG="vmbr0"
|
||||||
|
@ -151,11 +151,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 8Gb "
|
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 8 "
|
||||||
read DISK_SIZE
|
read DISK_SIZE
|
||||||
if [ -z $DISK_SIZE ]; then DISK_SIZE="8"; fi;
|
if [ -z $DISK_SIZE ]; then DISK_SIZE="8"; 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}${DGN}GB${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -165,11 +165,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 2 "
|
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 2 "
|
||||||
read CORE_COUNT
|
read CORE_COUNT
|
||||||
if [ -z $CORE_COUNT ]; then CORE_COUNT="2"; fi;
|
if [ -z $CORE_COUNT ]; then CORE_COUNT="2"; fi;
|
||||||
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}"
|
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}${DGN}vCPU${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -179,12 +179,12 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 2048 "
|
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 2048 "
|
||||||
read RAM_SIZE
|
read RAM_SIZE
|
||||||
if [ -z $RAM_SIZE ]; then RAM_SIZE="2048"; fi;
|
if [ -z $RAM_SIZE ]; then RAM_SIZE="2048"; fi;
|
||||||
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}"
|
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e " ${CM}${CL} \n"
|
echo -e " ${CM}${CL} \n"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -194,9 +194,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
||||||
read BRG
|
read BRG
|
||||||
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
||||||
|
@ -210,9 +210,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
||||||
read NET
|
read NET
|
||||||
|
@ -227,9 +227,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
||||||
|
@ -250,9 +250,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
@ -273,9 +273,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
|
|
@ -71,11 +71,11 @@ function default_settings() {
|
||||||
CT_ID=$NEXTID
|
CT_ID=$NEXTID
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
||||||
HN=$NSAPP
|
HN=$NSAPP
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}8GB${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}8${CL}${DGN}GB${CL}"
|
||||||
DISK_SIZE="8"
|
DISK_SIZE="8"
|
||||||
echo -e "${DGN}Using ${BGN}2vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}2${CL}${DGN}vCPU${CL}"
|
||||||
CORE_COUNT="2"
|
CORE_COUNT="2"
|
||||||
echo -e "${DGN}Using ${BGN}2048MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}2048${CL}${DGN}MiB RAM${CL}"
|
||||||
RAM_SIZE="2048"
|
RAM_SIZE="2048"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
||||||
BRG="vmbr0"
|
BRG="vmbr0"
|
||||||
|
@ -150,11 +150,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 8Gb "
|
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 8 "
|
||||||
read DISK_SIZE
|
read DISK_SIZE
|
||||||
if [ -z $DISK_SIZE ]; then DISK_SIZE="8"; fi;
|
if [ -z $DISK_SIZE ]; then DISK_SIZE="8"; 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}${DGN}GB${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -164,11 +164,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 2 "
|
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 2 "
|
||||||
read CORE_COUNT
|
read CORE_COUNT
|
||||||
if [ -z $CORE_COUNT ]; then CORE_COUNT="2"; fi;
|
if [ -z $CORE_COUNT ]; then CORE_COUNT="2"; fi;
|
||||||
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}"
|
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}${DGN}vCPU${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -178,12 +178,12 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 2048 "
|
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 2048 "
|
||||||
read RAM_SIZE
|
read RAM_SIZE
|
||||||
if [ -z $RAM_SIZE ]; then RAM_SIZE="2048"; fi;
|
if [ -z $RAM_SIZE ]; then RAM_SIZE="2048"; fi;
|
||||||
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}"
|
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e " ${CM}${CL} \n"
|
echo -e " ${CM}${CL} \n"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -193,9 +193,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
||||||
read BRG
|
read BRG
|
||||||
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
||||||
|
@ -209,9 +209,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
||||||
read NET
|
read NET
|
||||||
|
@ -226,9 +226,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
||||||
|
@ -249,9 +249,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
@ -272,9 +272,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
|
|
@ -65,19 +65,19 @@ function default_settings() {
|
||||||
clear
|
clear
|
||||||
header_info
|
header_info
|
||||||
echo -e "${BL}Using Default Settings${CL}"
|
echo -e "${BL}Using Default Settings${CL}"
|
||||||
echo -e "${DGN}Using CT Type ${BGN}Privileged${CL}"
|
echo -e "${DGN}Using CT Type ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
|
||||||
CT_TYPE="0"
|
CT_TYPE="1"
|
||||||
echo -e "${DGN}Using CT Password ${BGN}Automatic Login${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}Automatic Login${CL}"
|
||||||
PW=" "
|
PW=" "
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$NEXTID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$NEXTID${CL}"
|
||||||
CT_ID=$NEXTID
|
CT_ID=$NEXTID
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
||||||
HN=$NSAPP
|
HN=$NSAPP
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}8GB${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}8${CL}${DGN}GB${CL}"
|
||||||
DISK_SIZE="8"
|
DISK_SIZE="8"
|
||||||
echo -e "${DGN}Using ${BGN}2vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}2${CL}${DGN}vCPU${CL}"
|
||||||
CORE_COUNT="2"
|
CORE_COUNT="2"
|
||||||
echo -e "${DGN}Using ${BGN}2048MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}2048${CL}${DGN}MiB RAM${CL}"
|
||||||
RAM_SIZE="2048"
|
RAM_SIZE="2048"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
||||||
BRG="vmbr0"
|
BRG="vmbr0"
|
||||||
|
@ -93,14 +93,14 @@ function advanced_settings() {
|
||||||
clear
|
clear
|
||||||
header_info
|
header_info
|
||||||
echo -e "${RD}Using Advanced Settings${CL}"
|
echo -e "${RD}Using Advanced Settings${CL}"
|
||||||
echo -e "${YW}Type ${CROSS}${YW}Unprivileged, or Press [ENTER] for Default: Privileged"
|
echo -e "${YW}Type Privileged, or Press [ENTER] for Default: Unprivileged (${RD}NO DEVICE PASSTHROUGH${CL}${YW})"
|
||||||
read CT_TYPE1
|
read CT_TYPE1
|
||||||
if [ -z $CT_TYPE1 ]; then CT_TYPE1="Privileged" CT_TYPE="0";
|
if [ -z $CT_TYPE1 ]; then CT_TYPE1="Unprivileged" CT_TYPE="1";
|
||||||
echo -en "${DGN}Set CT Type ${BL}$CT_TYPE1${CL}"
|
echo -en "${DGN}Set CT Type ${BL}$CT_TYPE1${CL}"
|
||||||
else
|
else
|
||||||
CT_TYPE1="Unprivileged"
|
CT_TYPE1="Privileged"
|
||||||
CT_TYPE="1"
|
CT_TYPE="0"
|
||||||
echo -en "${DGN}Set CT Type ${BL}Unprivileged${CL}"
|
echo -en "${DGN}Set CT Type ${BL}Privileged${CL}"
|
||||||
fi;
|
fi;
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
|
@ -152,11 +152,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 8Gb "
|
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 8 "
|
||||||
read DISK_SIZE
|
read DISK_SIZE
|
||||||
if [ -z $DISK_SIZE ]; then DISK_SIZE="8"; fi;
|
if [ -z $DISK_SIZE ]; then DISK_SIZE="8"; 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}${DGN}GB${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -166,11 +166,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 2 "
|
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 2 "
|
||||||
read CORE_COUNT
|
read CORE_COUNT
|
||||||
if [ -z $CORE_COUNT ]; then CORE_COUNT="2"; fi;
|
if [ -z $CORE_COUNT ]; then CORE_COUNT="2"; fi;
|
||||||
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}"
|
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}${DGN}vCPU${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -180,12 +180,12 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 2048 "
|
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 2048 "
|
||||||
read RAM_SIZE
|
read RAM_SIZE
|
||||||
if [ -z $RAM_SIZE ]; then RAM_SIZE="2048"; fi;
|
if [ -z $RAM_SIZE ]; then RAM_SIZE="2048"; fi;
|
||||||
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}"
|
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e " ${CM}${CL} \n"
|
echo -e " ${CM}${CL} \n"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -195,9 +195,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
||||||
read BRG
|
read BRG
|
||||||
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
||||||
|
@ -211,9 +211,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
||||||
read NET
|
read NET
|
||||||
|
@ -228,9 +228,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
||||||
|
@ -251,9 +251,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
@ -274,9 +274,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
|
|
@ -71,11 +71,11 @@ function default_settings() {
|
||||||
CT_ID=$NEXTID
|
CT_ID=$NEXTID
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
||||||
HN=$NSAPP
|
HN=$NSAPP
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}4GB${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}4${CL}${DGN}GB${CL}"
|
||||||
DISK_SIZE="4"
|
DISK_SIZE="4"
|
||||||
echo -e "${DGN}Using ${BGN}1vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}1${CL}${DGN}vCPU${CL}"
|
||||||
CORE_COUNT="1"
|
CORE_COUNT="1"
|
||||||
echo -e "${DGN}Using ${BGN}1024MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}1024${CL}${DGN}MiB RAM${CL}"
|
||||||
RAM_SIZE="1024"
|
RAM_SIZE="1024"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
||||||
BRG="vmbr0"
|
BRG="vmbr0"
|
||||||
|
@ -150,11 +150,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 4Gb "
|
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 4 "
|
||||||
read DISK_SIZE
|
read DISK_SIZE
|
||||||
if [ -z $DISK_SIZE ]; then DISK_SIZE="4"; fi;
|
if [ -z $DISK_SIZE ]; then DISK_SIZE="4"; 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}${DGN}GB${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -164,11 +164,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 1 "
|
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 1 "
|
||||||
read CORE_COUNT
|
read CORE_COUNT
|
||||||
if [ -z $CORE_COUNT ]; then CORE_COUNT="1"; fi;
|
if [ -z $CORE_COUNT ]; then CORE_COUNT="1"; fi;
|
||||||
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}"
|
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}${DGN}vCPU${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -178,12 +178,12 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 1024 "
|
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 1024 "
|
||||||
read RAM_SIZE
|
read RAM_SIZE
|
||||||
if [ -z $RAM_SIZE ]; then RAM_SIZE="1024"; fi;
|
if [ -z $RAM_SIZE ]; then RAM_SIZE="1024"; fi;
|
||||||
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}"
|
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e " ${CM}${CL} \n"
|
echo -e " ${CM}${CL} \n"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -193,9 +193,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
||||||
read BRG
|
read BRG
|
||||||
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
||||||
|
@ -209,9 +209,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
||||||
read NET
|
read NET
|
||||||
|
@ -226,9 +226,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
||||||
|
@ -249,9 +249,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
@ -272,9 +272,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
|
|
@ -71,11 +71,11 @@ function default_settings() {
|
||||||
CT_ID=$NEXTID
|
CT_ID=$NEXTID
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
||||||
HN=$NSAPP
|
HN=$NSAPP
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}2GB${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}2${CL}${DGN}GB${CL}"
|
||||||
DISK_SIZE="2"
|
DISK_SIZE="2"
|
||||||
echo -e "${DGN}Using ${BGN}1vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}1${CL}${DGN}vCPU${CL}"
|
||||||
CORE_COUNT="1"
|
CORE_COUNT="1"
|
||||||
echo -e "${DGN}Using ${BGN}512MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}512${CL}${DGN}MiB RAM${CL}"
|
||||||
RAM_SIZE="512"
|
RAM_SIZE="512"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
||||||
BRG="vmbr0"
|
BRG="vmbr0"
|
||||||
|
@ -150,11 +150,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 2Gb "
|
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 2 "
|
||||||
read DISK_SIZE
|
read DISK_SIZE
|
||||||
if [ -z $DISK_SIZE ]; then DISK_SIZE="2"; fi;
|
if [ -z $DISK_SIZE ]; then DISK_SIZE="2"; 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}${DGN}GB${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -164,11 +164,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 1 "
|
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 1 "
|
||||||
read CORE_COUNT
|
read CORE_COUNT
|
||||||
if [ -z $CORE_COUNT ]; then CORE_COUNT="1"; fi;
|
if [ -z $CORE_COUNT ]; then CORE_COUNT="1"; fi;
|
||||||
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}"
|
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}${DGN}vCPU${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -178,12 +178,12 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 512 "
|
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 512 "
|
||||||
read RAM_SIZE
|
read RAM_SIZE
|
||||||
if [ -z $RAM_SIZE ]; then RAM_SIZE="512"; fi;
|
if [ -z $RAM_SIZE ]; then RAM_SIZE="512"; fi;
|
||||||
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}"
|
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e " ${CM}${CL} \n"
|
echo -e " ${CM}${CL} \n"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -193,9 +193,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
||||||
read BRG
|
read BRG
|
||||||
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
||||||
|
@ -209,9 +209,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
||||||
read NET
|
read NET
|
||||||
|
@ -226,9 +226,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
||||||
|
@ -249,9 +249,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
@ -272,9 +272,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
|
|
@ -71,11 +71,11 @@ function default_settings() {
|
||||||
CT_ID=$NEXTID
|
CT_ID=$NEXTID
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
||||||
HN=$NSAPP
|
HN=$NSAPP
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}8GB${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}8${CL}${DGN}GB${CL}"
|
||||||
DISK_SIZE="8"
|
DISK_SIZE="8"
|
||||||
echo -e "${DGN}Using ${BGN}2vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}2${CL}${DGN}vCPU${CL}"
|
||||||
CORE_COUNT="2"
|
CORE_COUNT="2"
|
||||||
echo -e "${DGN}Using ${BGN}2048MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}2048${CL}${DGN}MiB RAM${CL}"
|
||||||
RAM_SIZE="2048"
|
RAM_SIZE="2048"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
||||||
BRG="vmbr0"
|
BRG="vmbr0"
|
||||||
|
@ -150,11 +150,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 8Gb "
|
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 8 "
|
||||||
read DISK_SIZE
|
read DISK_SIZE
|
||||||
if [ -z $DISK_SIZE ]; then DISK_SIZE="8"; fi;
|
if [ -z $DISK_SIZE ]; then DISK_SIZE="8"; 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}${DGN}GB${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -164,11 +164,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 2 "
|
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 2 "
|
||||||
read CORE_COUNT
|
read CORE_COUNT
|
||||||
if [ -z $CORE_COUNT ]; then CORE_COUNT="2"; fi;
|
if [ -z $CORE_COUNT ]; then CORE_COUNT="2"; fi;
|
||||||
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}"
|
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}${DGN}vCPU${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -178,12 +178,12 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 2048 "
|
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 2048 "
|
||||||
read RAM_SIZE
|
read RAM_SIZE
|
||||||
if [ -z $RAM_SIZE ]; then RAM_SIZE="2048"; fi;
|
if [ -z $RAM_SIZE ]; then RAM_SIZE="2048"; fi;
|
||||||
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}"
|
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e " ${CM}${CL} \n"
|
echo -e " ${CM}${CL} \n"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -193,9 +193,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
||||||
read BRG
|
read BRG
|
||||||
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
||||||
|
@ -209,9 +209,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
||||||
read NET
|
read NET
|
||||||
|
@ -226,9 +226,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
||||||
|
@ -249,9 +249,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
@ -272,9 +272,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
|
|
@ -71,11 +71,11 @@ function default_settings() {
|
||||||
CT_ID=$NEXTID
|
CT_ID=$NEXTID
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
||||||
HN=$NSAPP
|
HN=$NSAPP
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}2GB${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}2${CL}${DGN}GB${CL}"
|
||||||
DISK_SIZE="2"
|
DISK_SIZE="2"
|
||||||
echo -e "${DGN}Using ${BGN}1vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}1${CL}${DGN}vCPU${CL}"
|
||||||
CORE_COUNT="1"
|
CORE_COUNT="1"
|
||||||
echo -e "${DGN}Using ${BGN}512MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}512${CL}${DGN}MiB RAM${CL}"
|
||||||
RAM_SIZE="512"
|
RAM_SIZE="512"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
||||||
BRG="vmbr0"
|
BRG="vmbr0"
|
||||||
|
@ -150,11 +150,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 2Gb "
|
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 2 "
|
||||||
read DISK_SIZE
|
read DISK_SIZE
|
||||||
if [ -z $DISK_SIZE ]; then DISK_SIZE="2"; fi;
|
if [ -z $DISK_SIZE ]; then DISK_SIZE="2"; 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}${DGN}GB${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -164,11 +164,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 1 "
|
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 1 "
|
||||||
read CORE_COUNT
|
read CORE_COUNT
|
||||||
if [ -z $CORE_COUNT ]; then CORE_COUNT="1"; fi;
|
if [ -z $CORE_COUNT ]; then CORE_COUNT="1"; fi;
|
||||||
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}"
|
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}${DGN}vCPU${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -178,12 +178,12 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 512 "
|
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 512 "
|
||||||
read RAM_SIZE
|
read RAM_SIZE
|
||||||
if [ -z $RAM_SIZE ]; then RAM_SIZE="512"; fi;
|
if [ -z $RAM_SIZE ]; then RAM_SIZE="512"; fi;
|
||||||
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}"
|
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e " ${CM}${CL} \n"
|
echo -e " ${CM}${CL} \n"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -193,9 +193,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
||||||
read BRG
|
read BRG
|
||||||
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
||||||
|
@ -209,9 +209,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
||||||
read NET
|
read NET
|
||||||
|
@ -226,9 +226,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
||||||
|
@ -249,9 +249,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
@ -272,9 +272,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
|
|
@ -71,11 +71,11 @@ function default_settings() {
|
||||||
CT_ID=$NEXTID
|
CT_ID=$NEXTID
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
||||||
HN=$NSAPP
|
HN=$NSAPP
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}3GB${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}3${CL}${DGN}GB${CL}"
|
||||||
DISK_SIZE="3"
|
DISK_SIZE="3"
|
||||||
echo -e "${DGN}Using ${BGN}1vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}1${CL}${DGN}vCPU${CL}"
|
||||||
CORE_COUNT="1"
|
CORE_COUNT="1"
|
||||||
echo -e "${DGN}Using ${BGN}1024MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}1024${CL}${DGN}MiB RAM${CL}"
|
||||||
RAM_SIZE="1024"
|
RAM_SIZE="1024"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
||||||
BRG="vmbr0"
|
BRG="vmbr0"
|
||||||
|
@ -150,11 +150,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 3Gb "
|
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 3 "
|
||||||
read DISK_SIZE
|
read DISK_SIZE
|
||||||
if [ -z $DISK_SIZE ]; then DISK_SIZE="3"; fi;
|
if [ -z $DISK_SIZE ]; then DISK_SIZE="3"; 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}${DGN}GB${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -164,11 +164,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 1 "
|
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 1 "
|
||||||
read CORE_COUNT
|
read CORE_COUNT
|
||||||
if [ -z $CORE_COUNT ]; then CORE_COUNT="1"; fi;
|
if [ -z $CORE_COUNT ]; then CORE_COUNT="1"; fi;
|
||||||
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}"
|
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}${DGN}vCPU${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -178,12 +178,12 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 1024 "
|
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 1024 "
|
||||||
read RAM_SIZE
|
read RAM_SIZE
|
||||||
if [ -z $RAM_SIZE ]; then RAM_SIZE="1024"; fi;
|
if [ -z $RAM_SIZE ]; then RAM_SIZE="1024"; fi;
|
||||||
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}"
|
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e " ${CM}${CL} \n"
|
echo -e " ${CM}${CL} \n"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -193,9 +193,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
||||||
read BRG
|
read BRG
|
||||||
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
||||||
|
@ -209,9 +209,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
||||||
read NET
|
read NET
|
||||||
|
@ -226,9 +226,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
||||||
|
@ -249,9 +249,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
@ -272,9 +272,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
|
|
@ -71,11 +71,11 @@ function default_settings() {
|
||||||
CT_ID=$NEXTID
|
CT_ID=$NEXTID
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
||||||
HN=$NSAPP
|
HN=$NSAPP
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}4GB${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}4${CL}${DGN}GB${CL}"
|
||||||
DISK_SIZE="2"
|
DISK_SIZE="4"
|
||||||
echo -e "${DGN}Using ${BGN}1vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}1${CL}${DGN}vCPU${CL}"
|
||||||
CORE_COUNT="1"
|
CORE_COUNT="1"
|
||||||
echo -e "${DGN}Using ${BGN}1024MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}1024${CL}${DGN}MiB RAM${CL}"
|
||||||
RAM_SIZE="1024"
|
RAM_SIZE="1024"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
||||||
BRG="vmbr0"
|
BRG="vmbr0"
|
||||||
|
@ -150,11 +150,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 4Gb "
|
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 4 "
|
||||||
read DISK_SIZE
|
read DISK_SIZE
|
||||||
if [ -z $DISK_SIZE ]; then DISK_SIZE="4"; fi;
|
if [ -z $DISK_SIZE ]; then DISK_SIZE="4"; 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}${DGN}GB${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -164,11 +164,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 1 "
|
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 1 "
|
||||||
read CORE_COUNT
|
read CORE_COUNT
|
||||||
if [ -z $CORE_COUNT ]; then CORE_COUNT="1"; fi;
|
if [ -z $CORE_COUNT ]; then CORE_COUNT="1"; fi;
|
||||||
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}"
|
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}${DGN}vCPU${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -178,12 +178,12 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 1024 "
|
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 1024 "
|
||||||
read RAM_SIZE
|
read RAM_SIZE
|
||||||
if [ -z $RAM_SIZE ]; then RAM_SIZE="1024"; fi;
|
if [ -z $RAM_SIZE ]; then RAM_SIZE="1024"; fi;
|
||||||
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}"
|
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e " ${CM}${CL} \n"
|
echo -e " ${CM}${CL} \n"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -193,9 +193,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
||||||
read BRG
|
read BRG
|
||||||
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
||||||
|
@ -209,9 +209,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
||||||
read NET
|
read NET
|
||||||
|
@ -226,9 +226,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
||||||
|
@ -249,9 +249,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
@ -272,9 +272,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
|
|
@ -71,11 +71,11 @@ function default_settings() {
|
||||||
CT_ID=$NEXTID
|
CT_ID=$NEXTID
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
||||||
HN=$NSAPP
|
HN=$NSAPP
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}4GB${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}4${CL}${DGN}GB${CL}"
|
||||||
DISK_SIZE="4"
|
DISK_SIZE="4"
|
||||||
echo -e "${DGN}Using ${BGN}1vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}1${CL}${DGN}vCPU${CL}"
|
||||||
CORE_COUNT="1"
|
CORE_COUNT="1"
|
||||||
echo -e "${DGN}Using ${BGN}1024MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}1024${CL}${DGN}MiB RAM${CL}"
|
||||||
RAM_SIZE="1024"
|
RAM_SIZE="1024"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
||||||
BRG="vmbr0"
|
BRG="vmbr0"
|
||||||
|
@ -150,11 +150,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 4Gb "
|
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 4 "
|
||||||
read DISK_SIZE
|
read DISK_SIZE
|
||||||
if [ -z $DISK_SIZE ]; then DISK_SIZE="4"; fi;
|
if [ -z $DISK_SIZE ]; then DISK_SIZE="4"; 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}${DGN}GB${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -164,11 +164,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 1 "
|
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 1 "
|
||||||
read CORE_COUNT
|
read CORE_COUNT
|
||||||
if [ -z $CORE_COUNT ]; then CORE_COUNT="1"; fi;
|
if [ -z $CORE_COUNT ]; then CORE_COUNT="1"; fi;
|
||||||
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}"
|
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}${DGN}vCPU${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -178,12 +178,12 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 1024 "
|
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 1024 "
|
||||||
read RAM_SIZE
|
read RAM_SIZE
|
||||||
if [ -z $RAM_SIZE ]; then RAM_SIZE="1024"; fi;
|
if [ -z $RAM_SIZE ]; then RAM_SIZE="1024"; fi;
|
||||||
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}"
|
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e " ${CM}${CL} \n"
|
echo -e " ${CM}${CL} \n"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -193,9 +193,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
||||||
read BRG
|
read BRG
|
||||||
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
||||||
|
@ -209,9 +209,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
||||||
read NET
|
read NET
|
||||||
|
@ -226,9 +226,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
||||||
|
@ -249,9 +249,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
@ -272,9 +272,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
|
|
@ -71,11 +71,11 @@ function default_settings() {
|
||||||
CT_ID=$NEXTID
|
CT_ID=$NEXTID
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
||||||
HN=$NSAPP
|
HN=$NSAPP
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}8GB${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}8${CL}${DGN}GB${CL}"
|
||||||
DISK_SIZE="8"
|
DISK_SIZE="8"
|
||||||
echo -e "${DGN}Using ${BGN}2vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}1${CL}${DGN}vCPU${CL}"
|
||||||
CORE_COUNT="2"
|
CORE_COUNT="2"
|
||||||
echo -e "${DGN}Using ${BGN}2048MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}512${CL}${DGN}MiB RAM${CL}"
|
||||||
RAM_SIZE="2048"
|
RAM_SIZE="2048"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
||||||
BRG="vmbr0"
|
BRG="vmbr0"
|
||||||
|
@ -150,11 +150,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 8Gb "
|
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 8 "
|
||||||
read DISK_SIZE
|
read DISK_SIZE
|
||||||
if [ -z $DISK_SIZE ]; then DISK_SIZE="8"; fi;
|
if [ -z $DISK_SIZE ]; then DISK_SIZE="8"; 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}${DGN}GB${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -164,11 +164,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 2 "
|
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 2 "
|
||||||
read CORE_COUNT
|
read CORE_COUNT
|
||||||
if [ -z $CORE_COUNT ]; then CORE_COUNT="2"; fi;
|
if [ -z $CORE_COUNT ]; then CORE_COUNT="2"; fi;
|
||||||
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}"
|
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}${DGN}vCPU${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -178,12 +178,12 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 2048 "
|
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 2048 "
|
||||||
read RAM_SIZE
|
read RAM_SIZE
|
||||||
if [ -z $RAM_SIZE ]; then RAM_SIZE="2048"; fi;
|
if [ -z $RAM_SIZE ]; then RAM_SIZE="2048"; fi;
|
||||||
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}"
|
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e " ${CM}${CL} \n"
|
echo -e " ${CM}${CL} \n"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -193,9 +193,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
||||||
read BRG
|
read BRG
|
||||||
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
||||||
|
@ -209,9 +209,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
||||||
read NET
|
read NET
|
||||||
|
@ -226,9 +226,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
||||||
|
@ -249,9 +249,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
@ -272,9 +272,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
|
|
@ -71,11 +71,11 @@ function default_settings() {
|
||||||
CT_ID=$NEXTID
|
CT_ID=$NEXTID
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
||||||
HN=$NSAPP
|
HN=$NSAPP
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}8GB${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}8${CL}${DGN}GB${CL}"
|
||||||
DISK_SIZE="8"
|
DISK_SIZE="8"
|
||||||
echo -e "${DGN}Using ${BGN}2vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}2${CL}${DGN}vCPU${CL}"
|
||||||
CORE_COUNT="2"
|
CORE_COUNT="2"
|
||||||
echo -e "${DGN}Using ${BGN}2048MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}2048${CL}${DGN}MiB RAM${CL}"
|
||||||
RAM_SIZE="2048"
|
RAM_SIZE="2048"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
||||||
BRG="vmbr0"
|
BRG="vmbr0"
|
||||||
|
@ -150,11 +150,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 8Gb "
|
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 8 "
|
||||||
read DISK_SIZE
|
read DISK_SIZE
|
||||||
if [ -z $DISK_SIZE ]; then DISK_SIZE="8"; fi;
|
if [ -z $DISK_SIZE ]; then DISK_SIZE="8"; 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}${DGN}GB${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -164,11 +164,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 2 "
|
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 2 "
|
||||||
read CORE_COUNT
|
read CORE_COUNT
|
||||||
if [ -z $CORE_COUNT ]; then CORE_COUNT="2"; fi;
|
if [ -z $CORE_COUNT ]; then CORE_COUNT="2"; fi;
|
||||||
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}"
|
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}${DGN}vCPU${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -178,12 +178,12 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 2048 "
|
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 2048 "
|
||||||
read RAM_SIZE
|
read RAM_SIZE
|
||||||
if [ -z $RAM_SIZE ]; then RAM_SIZE="2048"; fi;
|
if [ -z $RAM_SIZE ]; then RAM_SIZE="2048"; fi;
|
||||||
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}"
|
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e " ${CM}${CL} \n"
|
echo -e " ${CM}${CL} \n"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -193,9 +193,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
||||||
read BRG
|
read BRG
|
||||||
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
||||||
|
@ -209,9 +209,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
||||||
read NET
|
read NET
|
||||||
|
@ -226,9 +226,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
||||||
|
@ -249,9 +249,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
@ -272,9 +272,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
|
|
@ -71,11 +71,11 @@ function default_settings() {
|
||||||
CT_ID=$NEXTID
|
CT_ID=$NEXTID
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
||||||
HN=$NSAPP
|
HN=$NSAPP
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}2GB${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}2${CL}${DGN}GB${CL}"
|
||||||
DISK_SIZE="2"
|
DISK_SIZE="2"
|
||||||
echo -e "${DGN}Using ${BGN}1vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}1${CL}${DGN}vCPU${CL}"
|
||||||
CORE_COUNT="1"
|
CORE_COUNT="1"
|
||||||
echo -e "${DGN}Using ${BGN}512MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}512${CL}${DGN}MiB RAM${CL}"
|
||||||
RAM_SIZE="512"
|
RAM_SIZE="512"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
||||||
BRG="vmbr0"
|
BRG="vmbr0"
|
||||||
|
@ -150,11 +150,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 2Gb "
|
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 2 "
|
||||||
read DISK_SIZE
|
read DISK_SIZE
|
||||||
if [ -z $DISK_SIZE ]; then DISK_SIZE="2"; fi;
|
if [ -z $DISK_SIZE ]; then DISK_SIZE="2"; 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}${DGN}GB${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -164,11 +164,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 1 "
|
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 1 "
|
||||||
read CORE_COUNT
|
read CORE_COUNT
|
||||||
if [ -z $CORE_COUNT ]; then CORE_COUNT="1"; fi;
|
if [ -z $CORE_COUNT ]; then CORE_COUNT="1"; fi;
|
||||||
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}"
|
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}${DGN}vCPU${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -178,12 +178,12 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 512 "
|
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 512 "
|
||||||
read RAM_SIZE
|
read RAM_SIZE
|
||||||
if [ -z $RAM_SIZE ]; then RAM_SIZE="512"; fi;
|
if [ -z $RAM_SIZE ]; then RAM_SIZE="512"; fi;
|
||||||
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}"
|
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e " ${CM}${CL} \n"
|
echo -e " ${CM}${CL} \n"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -193,9 +193,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
||||||
read BRG
|
read BRG
|
||||||
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
||||||
|
@ -209,9 +209,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
||||||
read NET
|
read NET
|
||||||
|
@ -226,9 +226,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
||||||
|
@ -249,9 +249,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
@ -272,9 +272,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
|
|
@ -68,19 +68,19 @@ function default_settings() {
|
||||||
clear
|
clear
|
||||||
header_info
|
header_info
|
||||||
echo -e "${BL}Using Default Settings${CL}"
|
echo -e "${BL}Using Default Settings${CL}"
|
||||||
echo -e "${DGN}Using CT Type ${BGN}Privileged${CL}"
|
echo -e "${DGN}Using CT Type ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
|
||||||
CT_TYPE="0"
|
CT_TYPE="1"
|
||||||
echo -e "${DGN}Using CT Password ${BGN}Automatic Login${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}Automatic Login${CL}"
|
||||||
PW=" "
|
PW=" "
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$NEXTID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$NEXTID${CL}"
|
||||||
CT_ID=$NEXTID
|
CT_ID=$NEXTID
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
||||||
HN=$NSAPP
|
HN=$NSAPP
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}16GB${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}16${CL}${DGN}GB${CL}"
|
||||||
DISK_SIZE="16"
|
DISK_SIZE="16"
|
||||||
echo -e "${DGN}Using ${BGN}2vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}2${CL}${DGN}vCPU${CL}"
|
||||||
CORE_COUNT="2"
|
CORE_COUNT="2"
|
||||||
echo -e "${DGN}Using ${BGN}2048MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}2048${CL}${DGN}MiB RAM${CL}"
|
||||||
RAM_SIZE="2048"
|
RAM_SIZE="2048"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
||||||
BRG="vmbr0"
|
BRG="vmbr0"
|
||||||
|
@ -96,14 +96,14 @@ function advanced_settings() {
|
||||||
clear
|
clear
|
||||||
header_info
|
header_info
|
||||||
echo -e "${RD}Using Advanced Settings${CL}"
|
echo -e "${RD}Using Advanced Settings${CL}"
|
||||||
echo -e "${YW}Type Unprivileged, or Press [ENTER] for Default: Privileged"
|
echo -e "${YW}Type Privileged, or Press [ENTER] for Default: Unprivileged (${RD}NO DEVICE PASSTHROUGH${CL}${YW})"
|
||||||
read CT_TYPE1
|
read CT_TYPE1
|
||||||
if [ -z $CT_TYPE1 ]; then CT_TYPE1="Privileged" CT_TYPE="0";
|
if [ -z $CT_TYPE1 ]; then CT_TYPE1="Unprivileged" CT_TYPE="1";
|
||||||
echo -en "${DGN}Set CT Type ${BL}$CT_TYPE1${CL}"
|
echo -en "${DGN}Set CT Type ${BL}$CT_TYPE1${CL}"
|
||||||
else
|
else
|
||||||
CT_TYPE1="Unprivileged"
|
CT_TYPE1="Privileged"
|
||||||
CT_TYPE="1"
|
CT_TYPE="0"
|
||||||
echo -en "${DGN}Set CT Type ${BL}Unprivileged${CL}"
|
echo -en "${DGN}Set CT Type ${BL}Privileged${CL}"
|
||||||
fi;
|
fi;
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
|
@ -155,11 +155,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 16Gb "
|
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 16 "
|
||||||
read DISK_SIZE
|
read DISK_SIZE
|
||||||
if [ -z $DISK_SIZE ]; then DISK_SIZE="16"; fi;
|
if [ -z $DISK_SIZE ]; then DISK_SIZE="16"; 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}${DGN}GB${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -169,11 +169,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 2 "
|
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 2 "
|
||||||
read CORE_COUNT
|
read CORE_COUNT
|
||||||
if [ -z $CORE_COUNT ]; then CORE_COUNT="2"; fi;
|
if [ -z $CORE_COUNT ]; then CORE_COUNT="2"; fi;
|
||||||
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}"
|
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}${DGN}vCPU${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -183,12 +183,12 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 2048 "
|
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 2048 "
|
||||||
read RAM_SIZE
|
read RAM_SIZE
|
||||||
if [ -z $RAM_SIZE ]; then RAM_SIZE="2048"; fi;
|
if [ -z $RAM_SIZE ]; then RAM_SIZE="2048"; fi;
|
||||||
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}"
|
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e " ${CM}${CL} \n"
|
echo -e " ${CM}${CL} \n"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -198,9 +198,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
||||||
read BRG
|
read BRG
|
||||||
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
||||||
|
@ -214,9 +214,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
||||||
read NET
|
read NET
|
||||||
|
@ -231,9 +231,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
||||||
|
@ -254,9 +254,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
@ -277,9 +277,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
|
|
@ -71,11 +71,11 @@ function default_settings() {
|
||||||
CT_ID=$NEXTID
|
CT_ID=$NEXTID
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
||||||
HN=$NSAPP
|
HN=$NSAPP
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}2GB${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}2${CL}${DGN}GB${CL}"
|
||||||
DISK_SIZE="2"
|
DISK_SIZE="2"
|
||||||
echo -e "${DGN}Using ${BGN}1vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}1${CL}${DGN}vCPU${CL}"
|
||||||
CORE_COUNT="1"
|
CORE_COUNT="1"
|
||||||
echo -e "${DGN}Using ${BGN}512MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}512${CL}${DGN}MiB RAM${CL}"
|
||||||
RAM_SIZE="512"
|
RAM_SIZE="512"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
||||||
BRG="vmbr0"
|
BRG="vmbr0"
|
||||||
|
@ -150,11 +150,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 2Gb "
|
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 2 "
|
||||||
read DISK_SIZE
|
read DISK_SIZE
|
||||||
if [ -z $DISK_SIZE ]; then DISK_SIZE="2"; fi;
|
if [ -z $DISK_SIZE ]; then DISK_SIZE="2"; 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}${DGN}GB${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -164,11 +164,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 1 "
|
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 1 "
|
||||||
read CORE_COUNT
|
read CORE_COUNT
|
||||||
if [ -z $CORE_COUNT ]; then CORE_COUNT="1"; fi;
|
if [ -z $CORE_COUNT ]; then CORE_COUNT="1"; fi;
|
||||||
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}"
|
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}${DGN}vCPU${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -178,12 +178,12 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 512 "
|
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 512 "
|
||||||
read RAM_SIZE
|
read RAM_SIZE
|
||||||
if [ -z $RAM_SIZE ]; then RAM_SIZE="512"; fi;
|
if [ -z $RAM_SIZE ]; then RAM_SIZE="512"; fi;
|
||||||
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}"
|
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e " ${CM}${CL} \n"
|
echo -e " ${CM}${CL} \n"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -193,9 +193,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
||||||
read BRG
|
read BRG
|
||||||
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
||||||
|
@ -209,9 +209,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
||||||
read NET
|
read NET
|
||||||
|
@ -226,9 +226,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
||||||
|
@ -249,9 +249,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
@ -272,9 +272,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
|
|
@ -73,11 +73,11 @@ function default_settings() {
|
||||||
CT_ID=$NEXTID
|
CT_ID=$NEXTID
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
||||||
HN=$NSAPP
|
HN=$NSAPP
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}2GB${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}2${CL}${DGN}GB${CL}"
|
||||||
DISK_SIZE="2"
|
DISK_SIZE="2"
|
||||||
echo -e "${DGN}Using ${BGN}1vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}1${CL}${DGN}vCPU${CL}"
|
||||||
CORE_COUNT="1"
|
CORE_COUNT="1"
|
||||||
echo -e "${DGN}Using ${BGN}512MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}512${CL}${DGN}MiB RAM${CL}"
|
||||||
RAM_SIZE="512"
|
RAM_SIZE="512"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
||||||
BRG="vmbr0"
|
BRG="vmbr0"
|
||||||
|
@ -169,11 +169,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 2Gb "
|
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 2 "
|
||||||
read DISK_SIZE
|
read DISK_SIZE
|
||||||
if [ -z $DISK_SIZE ]; then DISK_SIZE="2"; fi;
|
if [ -z $DISK_SIZE ]; then DISK_SIZE="2"; 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}${DGN}GB${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -184,11 +184,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 1 "
|
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 1 "
|
||||||
read CORE_COUNT
|
read CORE_COUNT
|
||||||
if [ -z $CORE_COUNT ]; then CORE_COUNT="1"; fi;
|
if [ -z $CORE_COUNT ]; then CORE_COUNT="1"; fi;
|
||||||
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}"
|
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}${DGN}vCPU${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -199,8 +199,8 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 512 "
|
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 512 "
|
||||||
read RAM_SIZE
|
read RAM_SIZE
|
||||||
if [ -z $RAM_SIZE ]; then RAM_SIZE="512"; fi;
|
if [ -z $RAM_SIZE ]; then RAM_SIZE="512"; fi;
|
||||||
|
@ -210,13 +210,14 @@ sleep 1
|
||||||
clear
|
clear
|
||||||
header_info
|
header_info
|
||||||
echo -e "${RD}Using Advanced Settings${CL}"
|
echo -e "${RD}Using Advanced Settings${CL}"
|
||||||
|
echo -e "${DGN}Using Version ${BGN}$VER${CL}"
|
||||||
echo -e "${DGN}Using CT Type ${BGN}$CT_TYPE1${CL}"
|
echo -e "${DGN}Using CT Type ${BGN}$CT_TYPE1${CL}"
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
||||||
read BRG
|
read BRG
|
||||||
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
||||||
|
@ -226,13 +227,14 @@ sleep 1
|
||||||
clear
|
clear
|
||||||
header_info
|
header_info
|
||||||
echo -e "${RD}Using Advanced Settings${CL}"
|
echo -e "${RD}Using Advanced Settings${CL}"
|
||||||
|
echo -e "${DGN}Using Version ${BGN}$VER${CL}"
|
||||||
echo -e "${DGN}Using CT Type ${BGN}$CT_TYPE1${CL}"
|
echo -e "${DGN}Using CT Type ${BGN}$CT_TYPE1${CL}"
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
||||||
read NET
|
read NET
|
||||||
|
@ -243,13 +245,14 @@ sleep 1
|
||||||
clear
|
clear
|
||||||
header_info
|
header_info
|
||||||
echo -e "${RD}Using Advanced Settings${CL}"
|
echo -e "${RD}Using Advanced Settings${CL}"
|
||||||
|
echo -e "${DGN}Using Version ${BGN}$VER${CL}"
|
||||||
echo -e "${DGN}Using CT Type ${BGN}$CT_TYPE1${CL}"
|
echo -e "${DGN}Using CT Type ${BGN}$CT_TYPE1${CL}"
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
||||||
|
@ -266,13 +269,14 @@ clear
|
||||||
header_info
|
header_info
|
||||||
|
|
||||||
echo -e "${RD}Using Advanced Settings${CL}"
|
echo -e "${RD}Using Advanced Settings${CL}"
|
||||||
|
echo -e "${DGN}Using Version ${BGN}$VER${CL}"
|
||||||
echo -e "${DGN}Using CT Type ${BGN}$CT_TYPE1${CL}"
|
echo -e "${DGN}Using CT Type ${BGN}$CT_TYPE1${CL}"
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
@ -289,13 +293,14 @@ sleep 1
|
||||||
clear
|
clear
|
||||||
header_info
|
header_info
|
||||||
echo -e "${RD}Using Advanced Settings${CL}"
|
echo -e "${RD}Using Advanced Settings${CL}"
|
||||||
|
echo -e "${DGN}Using Version ${BGN}$VER${CL}"
|
||||||
echo -e "${DGN}Using CT Type ${BGN}$CT_TYPE1${CL}"
|
echo -e "${DGN}Using CT Type ${BGN}$CT_TYPE1${CL}"
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
|
|
@ -71,11 +71,11 @@ function default_settings() {
|
||||||
CT_ID=$NEXTID
|
CT_ID=$NEXTID
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
||||||
HN=$NSAPP
|
HN=$NSAPP
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}8GB${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}8${CL}${DGN}GB${CL}"
|
||||||
DISK_SIZE="8"
|
DISK_SIZE="8"
|
||||||
echo -e "${DGN}Using ${BGN}2vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}2${CL}${DGN}vCPU${CL}"
|
||||||
CORE_COUNT="2"
|
CORE_COUNT="2"
|
||||||
echo -e "${DGN}Using ${BGN}2048MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}2048${CL}${DGN}MiB RAM${CL}"
|
||||||
RAM_SIZE="2048"
|
RAM_SIZE="2048"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
||||||
BRG="vmbr0"
|
BRG="vmbr0"
|
||||||
|
@ -150,11 +150,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 8Gb "
|
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 8 "
|
||||||
read DISK_SIZE
|
read DISK_SIZE
|
||||||
if [ -z $DISK_SIZE ]; then DISK_SIZE="8"; fi;
|
if [ -z $DISK_SIZE ]; then DISK_SIZE="8"; 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}${DGN}GB${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -164,11 +164,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 2 "
|
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 2 "
|
||||||
read CORE_COUNT
|
read CORE_COUNT
|
||||||
if [ -z $CORE_COUNT ]; then CORE_COUNT="2"; fi;
|
if [ -z $CORE_COUNT ]; then CORE_COUNT="2"; fi;
|
||||||
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}"
|
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}${DGN}vCPU${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -178,12 +178,12 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 2048 "
|
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 2048 "
|
||||||
read RAM_SIZE
|
read RAM_SIZE
|
||||||
if [ -z $RAM_SIZE ]; then RAM_SIZE="2048"; fi;
|
if [ -z $RAM_SIZE ]; then RAM_SIZE="2048"; fi;
|
||||||
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}"
|
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e " ${CM}${CL} \n"
|
echo -e " ${CM}${CL} \n"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -193,9 +193,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
||||||
read BRG
|
read BRG
|
||||||
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
||||||
|
@ -209,9 +209,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
||||||
read NET
|
read NET
|
||||||
|
@ -226,9 +226,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
||||||
|
@ -249,9 +249,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
@ -272,9 +272,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
|
|
@ -73,11 +73,11 @@ function default_settings() {
|
||||||
CT_ID=$NEXTID
|
CT_ID=$NEXTID
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
||||||
HN=$NSAPP
|
HN=$NSAPP
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}2GB${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}2${CL}${DGN}GB${CL}"
|
||||||
DISK_SIZE="2"
|
DISK_SIZE="2"
|
||||||
echo -e "${DGN}Using ${BGN}1vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}1${CL}${DGN}vCPU${CL}"
|
||||||
CORE_COUNT="1"
|
CORE_COUNT="1"
|
||||||
echo -e "${DGN}Using ${BGN}512MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}512${CL}${DGN}MiB RAM${CL}"
|
||||||
RAM_SIZE="512"
|
RAM_SIZE="512"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
||||||
BRG="vmbr0"
|
BRG="vmbr0"
|
||||||
|
@ -152,11 +152,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 2Gb "
|
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 2 "
|
||||||
read DISK_SIZE
|
read DISK_SIZE
|
||||||
if [ -z $DISK_SIZE ]; then DISK_SIZE="2"; fi;
|
if [ -z $DISK_SIZE ]; then DISK_SIZE="2"; 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}${DGN}GB${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -166,11 +166,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 1 "
|
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 1 "
|
||||||
read CORE_COUNT
|
read CORE_COUNT
|
||||||
if [ -z $CORE_COUNT ]; then CORE_COUNT="1"; fi;
|
if [ -z $CORE_COUNT ]; then CORE_COUNT="1"; fi;
|
||||||
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}"
|
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}${DGN}vCPU${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -180,12 +180,12 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 512 "
|
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 512 "
|
||||||
read RAM_SIZE
|
read RAM_SIZE
|
||||||
if [ -z $RAM_SIZE ]; then RAM_SIZE="512"; fi;
|
if [ -z $RAM_SIZE ]; then RAM_SIZE="512"; fi;
|
||||||
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}"
|
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e " ${CM}${CL} \n"
|
echo -e " ${CM}${CL} \n"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -195,9 +195,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
||||||
read BRG
|
read BRG
|
||||||
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
||||||
|
@ -211,9 +211,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
||||||
read NET
|
read NET
|
||||||
|
@ -228,9 +228,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
||||||
|
@ -251,9 +251,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
@ -274,9 +274,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
|
|
@ -71,11 +71,11 @@ function default_settings() {
|
||||||
CT_ID=$NEXTID
|
CT_ID=$NEXTID
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
||||||
HN=$NSAPP
|
HN=$NSAPP
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}8GB${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}8${CL}${DGN}GB${CL}"
|
||||||
DISK_SIZE="8"
|
DISK_SIZE="8"
|
||||||
echo -e "${DGN}Using ${BGN}4vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}4${CL}${DGN}vCPU${CL}"
|
||||||
CORE_COUNT="4"
|
CORE_COUNT="4"
|
||||||
echo -e "${DGN}Using ${BGN}4096MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}4096${CL}${DGN}MiB RAM${CL}"
|
||||||
RAM_SIZE="4096"
|
RAM_SIZE="4096"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
||||||
BRG="vmbr0"
|
BRG="vmbr0"
|
||||||
|
@ -150,11 +150,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 8Gb "
|
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 8 "
|
||||||
read DISK_SIZE
|
read DISK_SIZE
|
||||||
if [ -z $DISK_SIZE ]; then DISK_SIZE="8"; fi;
|
if [ -z $DISK_SIZE ]; then DISK_SIZE="8"; 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}${DGN}GB${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -164,11 +164,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 4 "
|
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 4 "
|
||||||
read CORE_COUNT
|
read CORE_COUNT
|
||||||
if [ -z $CORE_COUNT ]; then CORE_COUNT="4"; fi;
|
if [ -z $CORE_COUNT ]; then CORE_COUNT="4"; fi;
|
||||||
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}"
|
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}${DGN}vCPU${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -178,12 +178,12 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 4096 "
|
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 4096 "
|
||||||
read RAM_SIZE
|
read RAM_SIZE
|
||||||
if [ -z $RAM_SIZE ]; then RAM_SIZE="4096"; fi;
|
if [ -z $RAM_SIZE ]; then RAM_SIZE="4096"; fi;
|
||||||
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}"
|
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e " ${CM}${CL} \n"
|
echo -e " ${CM}${CL} \n"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -193,9 +193,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
||||||
read BRG
|
read BRG
|
||||||
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
||||||
|
@ -209,9 +209,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
||||||
read NET
|
read NET
|
||||||
|
@ -226,9 +226,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
||||||
|
@ -249,9 +249,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
@ -272,9 +272,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
|
|
@ -72,11 +72,11 @@ function default_settings() {
|
||||||
CT_ID=$NEXTID
|
CT_ID=$NEXTID
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
||||||
HN=$NSAPP
|
HN=$NSAPP
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}2GB${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}2${CL}${DGN}GB${CL}"
|
||||||
DISK_SIZE="2"
|
DISK_SIZE="2"
|
||||||
echo -e "${DGN}Using ${BGN}1vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}1${CL}${DGN}vCPU${CL}"
|
||||||
CORE_COUNT="1"
|
CORE_COUNT="1"
|
||||||
echo -e "${DGN}Using ${BGN}512MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}512${CL}${DGN}MiB RAM${CL}"
|
||||||
RAM_SIZE="512"
|
RAM_SIZE="512"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
||||||
BRG="vmbr0"
|
BRG="vmbr0"
|
||||||
|
@ -151,11 +151,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 2Gb "
|
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 2 "
|
||||||
read DISK_SIZE
|
read DISK_SIZE
|
||||||
if [ -z $DISK_SIZE ]; then DISK_SIZE="2"; fi;
|
if [ -z $DISK_SIZE ]; then DISK_SIZE="2"; 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}${DGN}GB${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -165,11 +165,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 1 "
|
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 1 "
|
||||||
read CORE_COUNT
|
read CORE_COUNT
|
||||||
if [ -z $CORE_COUNT ]; then CORE_COUNT="1"; fi;
|
if [ -z $CORE_COUNT ]; then CORE_COUNT="1"; fi;
|
||||||
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}"
|
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}${DGN}vCPU${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -179,12 +179,12 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 512 "
|
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 512 "
|
||||||
read RAM_SIZE
|
read RAM_SIZE
|
||||||
if [ -z $RAM_SIZE ]; then RAM_SIZE="512"; fi;
|
if [ -z $RAM_SIZE ]; then RAM_SIZE="512"; fi;
|
||||||
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}"
|
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e " ${CM}${CL} \n"
|
echo -e " ${CM}${CL} \n"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -194,9 +194,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
||||||
read BRG
|
read BRG
|
||||||
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
||||||
|
@ -210,9 +210,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
||||||
read NET
|
read NET
|
||||||
|
@ -227,9 +227,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
||||||
|
@ -250,9 +250,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
@ -273,9 +273,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
|
|
@ -65,19 +65,19 @@ function default_settings() {
|
||||||
clear
|
clear
|
||||||
header_info
|
header_info
|
||||||
echo -e "${BL}Using Default Settings${CL}"
|
echo -e "${BL}Using Default Settings${CL}"
|
||||||
echo -e "${DGN}Using CT Type ${BGN}Privileged${CL}"
|
echo -e "${DGN}Using CT Type ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
|
||||||
CT_TYPE="0"
|
CT_TYPE="1"
|
||||||
echo -e "${DGN}Using CT Password ${BGN}Automatic Login${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}Automatic Login${CL}"
|
||||||
PW=" "
|
PW=" "
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$NEXTID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$NEXTID${CL}"
|
||||||
CT_ID=$NEXTID
|
CT_ID=$NEXTID
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
||||||
HN=$NSAPP
|
HN=$NSAPP
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}4GB${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}4${CL}${DGN}GB${CL}"
|
||||||
DISK_SIZE="4"
|
DISK_SIZE="4"
|
||||||
echo -e "${DGN}Using ${BGN}2vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}2${CL}${DGN}vCPU${CL}"
|
||||||
CORE_COUNT="2"
|
CORE_COUNT="2"
|
||||||
echo -e "${DGN}Using ${BGN}1024MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}1024${CL}${DGN}MiB RAM${CL}"
|
||||||
RAM_SIZE="1024"
|
RAM_SIZE="1024"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
||||||
BRG="vmbr0"
|
BRG="vmbr0"
|
||||||
|
@ -93,14 +93,14 @@ function advanced_settings() {
|
||||||
clear
|
clear
|
||||||
header_info
|
header_info
|
||||||
echo -e "${RD}Using Advanced Settings${CL}"
|
echo -e "${RD}Using Advanced Settings${CL}"
|
||||||
echo -e "${YW}Type ${CROSS}${YW}Unprivileged, or Press [ENTER] for Default: Privileged"
|
echo -e "${YW}Type Privileged, or Press [ENTER] for Default: Unprivileged (${RD}NO DEVICE PASSTHROUGH${CL}${YW})"
|
||||||
read CT_TYPE1
|
read CT_TYPE1
|
||||||
if [ -z $CT_TYPE1 ]; then CT_TYPE1="Privileged" CT_TYPE="0";
|
if [ -z $CT_TYPE1 ]; then CT_TYPE1="Unprivileged" CT_TYPE="1";
|
||||||
echo -en "${DGN}Set CT Type ${BL}$CT_TYPE1${CL}"
|
echo -en "${DGN}Set CT Type ${BL}$CT_TYPE1${CL}"
|
||||||
else
|
else
|
||||||
CT_TYPE1="Unprivileged"
|
CT_TYPE1="Privileged"
|
||||||
CT_TYPE="1"
|
CT_TYPE="0"
|
||||||
echo -en "${DGN}Set CT Type ${BL}Unprivileged${CL}"
|
echo -en "${DGN}Set CT Type ${BL}Privileged${CL}"
|
||||||
fi;
|
fi;
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
|
@ -152,11 +152,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 4Gb "
|
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 4 "
|
||||||
read DISK_SIZE
|
read DISK_SIZE
|
||||||
if [ -z $DISK_SIZE ]; then DISK_SIZE="4"; fi;
|
if [ -z $DISK_SIZE ]; then DISK_SIZE="4"; 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}${DGN}GB${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -166,11 +166,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 2 "
|
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 2 "
|
||||||
read CORE_COUNT
|
read CORE_COUNT
|
||||||
if [ -z $CORE_COUNT ]; then CORE_COUNT="2"; fi;
|
if [ -z $CORE_COUNT ]; then CORE_COUNT="2"; fi;
|
||||||
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}"
|
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}${DGN}vCPU${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -180,12 +180,12 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 1024 "
|
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 1024 "
|
||||||
read RAM_SIZE
|
read RAM_SIZE
|
||||||
if [ -z $RAM_SIZE ]; then RAM_SIZE="1024"; fi;
|
if [ -z $RAM_SIZE ]; then RAM_SIZE="1024"; fi;
|
||||||
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}"
|
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e " ${CM}${CL} \n"
|
echo -e " ${CM}${CL} \n"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -195,9 +195,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
||||||
read BRG
|
read BRG
|
||||||
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
||||||
|
@ -211,9 +211,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
||||||
read NET
|
read NET
|
||||||
|
@ -228,9 +228,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
||||||
|
@ -251,9 +251,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
@ -274,9 +274,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
|
|
@ -64,19 +64,19 @@ function default_settings() {
|
||||||
clear
|
clear
|
||||||
header_info
|
header_info
|
||||||
echo -e "${BL}Using Default Settings${CL}"
|
echo -e "${BL}Using Default Settings${CL}"
|
||||||
echo -e "${DGN}Using CT Type ${BGN}Privileged${CL}"
|
echo -e "${DGN}Using CT Type ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
|
||||||
CT_TYPE="0"
|
CT_TYPE="1"
|
||||||
echo -e "${DGN}Using CT Password ${BGN}Automatic Login${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}Automatic Login${CL}"
|
||||||
PW=" "
|
PW=" "
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$NEXTID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$NEXTID${CL}"
|
||||||
CT_ID=$NEXTID
|
CT_ID=$NEXTID
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}"
|
||||||
HN=$NSAPP
|
HN=$NSAPP
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}4GB${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}4${CL}${DGN}GB${CL}"
|
||||||
DISK_SIZE="4"
|
DISK_SIZE="4"
|
||||||
echo -e "${DGN}Using ${BGN}2vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}2${CL}${DGN}vCPU${CL}"
|
||||||
CORE_COUNT="2"
|
CORE_COUNT="2"
|
||||||
echo -e "${DGN}Using ${BGN}1024MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}1024${CL}${DGN}MiB RAM${CL}"
|
||||||
RAM_SIZE="1024"
|
RAM_SIZE="1024"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}vmbr0${CL}"
|
||||||
BRG="vmbr0"
|
BRG="vmbr0"
|
||||||
|
@ -92,14 +92,14 @@ function advanced_settings() {
|
||||||
clear
|
clear
|
||||||
header_info
|
header_info
|
||||||
echo -e "${RD}Using Advanced Settings${CL}"
|
echo -e "${RD}Using Advanced Settings${CL}"
|
||||||
echo -e "${YW}Type ${CROSS}${YW}Unprivileged, or Press [ENTER] for Default: Privileged"
|
echo -e "${YW}Type Privileged, or Press [ENTER] for Default: Unprivileged (${RD}NO DEVICE PASSTHROUGH${CL}${YW})"
|
||||||
read CT_TYPE1
|
read CT_TYPE1
|
||||||
if [ -z $CT_TYPE1 ]; then CT_TYPE1="Privileged" CT_TYPE="0";
|
if [ -z $CT_TYPE1 ]; then CT_TYPE1="Unprivileged" CT_TYPE="1";
|
||||||
echo -en "${DGN}Set CT Type ${BL}$CT_TYPE1${CL}"
|
echo -en "${DGN}Set CT Type ${BL}$CT_TYPE1${CL}"
|
||||||
else
|
else
|
||||||
CT_TYPE1="Unprivileged"
|
CT_TYPE1="Privileged"
|
||||||
CT_TYPE="1"
|
CT_TYPE="0"
|
||||||
echo -en "${DGN}Set CT Type ${BL}Unprivileged${CL}"
|
echo -en "${DGN}Set CT Type ${BL}Privileged${CL}"
|
||||||
fi;
|
fi;
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
|
@ -151,11 +151,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 4Gb "
|
echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 4 "
|
||||||
read DISK_SIZE
|
read DISK_SIZE
|
||||||
if [ -z $DISK_SIZE ]; then DISK_SIZE="4"; fi;
|
if [ -z $DISK_SIZE ]; then DISK_SIZE="4"; 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}${DGN}GB${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -165,11 +165,11 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 2 "
|
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 2 "
|
||||||
read CORE_COUNT
|
read CORE_COUNT
|
||||||
if [ -z $CORE_COUNT ]; then CORE_COUNT="2"; fi;
|
if [ -z $CORE_COUNT ]; then CORE_COUNT="2"; fi;
|
||||||
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}"
|
echo -en "${DGN}Set Cores To ${BL}$CORE_COUNT${CL}${DGN}vCPU${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -179,12 +179,12 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 1024 "
|
echo -e "${YW}Allocate RAM in MiB, or Press [ENTER] for Default: 1024 "
|
||||||
read RAM_SIZE
|
read RAM_SIZE
|
||||||
if [ -z $RAM_SIZE ]; then RAM_SIZE="1024"; fi;
|
if [ -z $RAM_SIZE ]; then RAM_SIZE="1024"; fi;
|
||||||
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}"
|
echo -en "${DGN}Set RAM To ${BL}$RAM_SIZE${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e " ${CM}${CL} \n"
|
echo -e " ${CM}${CL} \n"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -194,9 +194,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
||||||
read BRG
|
read BRG
|
||||||
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
||||||
|
@ -210,9 +210,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
||||||
read NET
|
read NET
|
||||||
|
@ -227,9 +227,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
||||||
|
@ -250,9 +250,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
@ -273,9 +273,9 @@ header_info
|
||||||
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}${DGN}GB${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}${CL}${DGN}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}${CL}${DGN}MiB RAM${CL}"
|
||||||
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
|
|
Loading…
Reference in New Issue