mirror of https://github.com/tteck/Proxmox.git
Update homeassistant-v3.sh
This commit is contained in:
parent
f610003bb4
commit
bed024ed5c
|
@ -66,7 +66,7 @@ function default_settings() {
|
||||||
CT_TYPE="1"
|
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 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
|
||||||
|
@ -76,7 +76,7 @@ function default_settings() {
|
||||||
CORE_COUNT="2"
|
CORE_COUNT="2"
|
||||||
echo -e "${DGN}Using ${BGN}2048MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}2048MiB${CL}${DGN} RAM${CL}"
|
||||||
RAM_SIZE="2048"
|
RAM_SIZE="2048"
|
||||||
echo -e "${DGN}Using IP Address ${BGN}DHCP${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}DHCP${CL}"
|
||||||
NET=dhcp
|
NET=dhcp
|
||||||
echo -e "${DGN}Using Gateway Address ${BGN}NONE${CL}"
|
echo -e "${DGN}Using Gateway Address ${BGN}NONE${CL}"
|
||||||
GATE=" "
|
GATE=" "
|
||||||
|
@ -129,7 +129,7 @@ header_info
|
||||||
echo -e "${RD}Using Advanced Settings${CL}"
|
echo -e "${RD}Using Advanced Settings${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 ID ${BGN}$CT_ID${CL}"
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${YW}Enter CT Name (no-spaces), or Press [ENTER] for Default: $NSAPP "
|
echo -e "${YW}Enter CT Name (no-spaces), or Press [ENTER] for Default: $NSAPP "
|
||||||
read CT_NAME
|
read CT_NAME
|
||||||
if [ -z $CT_NAME ]; then
|
if [ -z $CT_NAME ]; then
|
||||||
|
@ -145,7 +145,7 @@ header_info
|
||||||
echo -e "${RD}Using Advanced Settings${CL}"
|
echo -e "${RD}Using Advanced Settings${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 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: 16Gb "
|
||||||
read DISK_SIZE
|
read DISK_SIZE
|
||||||
|
@ -159,7 +159,7 @@ header_info
|
||||||
echo -e "${RD}Using Advanced Settings${CL}"
|
echo -e "${RD}Using Advanced Settings${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 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}"
|
||||||
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 2 "
|
echo -e "${YW}Allocate CPU cores, or Press [ENTER] for Default: 2 "
|
||||||
|
@ -173,7 +173,7 @@ header_info
|
||||||
echo -e "${RD}Using Advanced Settings${CL}"
|
echo -e "${RD}Using Advanced Settings${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 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}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
||||||
|
@ -188,15 +188,15 @@ header_info
|
||||||
echo -e "${RD}Using Advanced Settings${CL}"
|
echo -e "${RD}Using Advanced Settings${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 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}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
||||||
echo -e "${YW}Enter a 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
|
||||||
if [ -z $NET ]; then NET="dhcp"; fi;
|
if [ -z $NET ]; then NET="dhcp"; fi;
|
||||||
echo -en "${DGN}Set IP Address To ${BL}$NET${CL}"
|
echo -en "${DGN}Set Static IP Address To ${BL}$NET${CL}"
|
||||||
echo -e " ${CM}${CL} \n"
|
echo -e " ${CM}${CL} \n"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
|
@ -204,12 +204,12 @@ header_info
|
||||||
echo -e "${RD}Using Advanced Settings${CL}"
|
echo -e "${RD}Using Advanced Settings${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 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}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
||||||
echo -e "${DGN}Using 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 "
|
||||||
read GATE1
|
read GATE1
|
||||||
if [ -z $GATE1 ]; then GATE1="NONE" GATE=" ";
|
if [ -z $GATE1 ]; then GATE1="NONE" GATE=" ";
|
||||||
|
@ -226,12 +226,12 @@ header_info
|
||||||
echo -e "${RD}Using Advanced Settings${CL}"
|
echo -e "${RD}Using Advanced Settings${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 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}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
||||||
echo -e "${DGN}Using 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}"
|
||||||
echo -e "${YW}Enter a VLAN Tag, or Press [ENTER] for Default: NONE "
|
echo -e "${YW}Enter a VLAN Tag, or Press [ENTER] for Default: NONE "
|
||||||
read VLAN1
|
read VLAN1
|
||||||
|
@ -248,12 +248,12 @@ header_info
|
||||||
echo -e "${RD}Using Advanced Settings${CL}"
|
echo -e "${RD}Using Advanced Settings${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 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}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
||||||
echo -e "${DGN}Using 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}"
|
||||||
echo -e "${DGN}Using VLAN Tag ${BGN}$VLAN1${CL}"
|
echo -e "${DGN}Using VLAN Tag ${BGN}$VLAN1${CL}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue