mirror of
https://github.com/tteck/Proxmox.git
synced 2024-12-24 14:01:56 +00:00
Update debian-v3.sh
This commit is contained in:
parent
eff8876479
commit
0965bb5a57
@ -52,8 +52,8 @@ function default_settings() {
|
|||||||
PW=" "
|
PW=" "
|
||||||
echo -e "${GN}Using ID ${BGN}$NEXTID${CL}"
|
echo -e "${GN}Using ID ${BGN}$NEXTID${CL}"
|
||||||
CT_ID=$NEXTID
|
CT_ID=$NEXTID
|
||||||
echo -e "${GN}Using CT Name ${BGN}$APP${CL}"
|
echo -e "${GN}Using CT Name ${BGN}$NSAPP${CL}"
|
||||||
HN=$(echo ${APP,,} | tr -d ' ')
|
HN=$NSAPP
|
||||||
echo -e "${GN}Using Disk Size ${BGN}2GB${CL}"
|
echo -e "${GN}Using Disk Size ${BGN}2GB${CL}"
|
||||||
SIZEDISK="2"
|
SIZEDISK="2"
|
||||||
echo -e "${GN}Using Storage ${BGN}local-lvm${CL}"
|
echo -e "${GN}Using Storage ${BGN}local-lvm${CL}"
|
||||||
@ -115,11 +115,14 @@ header_info
|
|||||||
echo -e "${GN}Using CT Type ${BGN}$CT_TYPE1${CL}"
|
echo -e "${GN}Using CT Type ${BGN}$CT_TYPE1${CL}"
|
||||||
echo -e "${GN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${GN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${GN}Using ID ${BGN}$CT_ID${CL}"
|
echo -e "${GN}Using ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${YW}Enter CT Name (no spaces), or Press [ENTER] for Default: $APP "
|
echo -e "${YW}Enter CT Name (no-spaces), or Press [ENTER] for Default: $APP "
|
||||||
read CT_NAME
|
read CT_NAME
|
||||||
if [ -z $CT_NAME ]; then CT_NAME=$APP; HN=$(echo ${CT_NAME,,} | tr -d ' '); fi
|
if [ -z $CT_NAME ]; then
|
||||||
if [ $CT_NAME ]; then HN=$(echo ${CT_NAME,,} | tr -d ' '); fi
|
HN=$NSAPP
|
||||||
echo -en "${GN}Set CT Name To ${BL}$CT_NAME${CL}"
|
else
|
||||||
|
HN=$(echo ${CT_NAME,,} | tr -d ' ')
|
||||||
|
fi
|
||||||
|
echo -en "${GN}Set CT Name To ${BL}$HN${CL}"
|
||||||
echo -e " ${CM}${CL} \r"
|
echo -e " ${CM}${CL} \r"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
@ -128,7 +131,7 @@ header_info
|
|||||||
echo -e "${GN}Using CT Type ${BGN}$CT_TYPE1${CL}"
|
echo -e "${GN}Using CT Type ${BGN}$CT_TYPE1${CL}"
|
||||||
echo -e "${GN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${GN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${GN}Using ID ${BGN}$CT_ID${CL}"
|
echo -e "${GN}Using ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${GN}Using CT Name ${BGN}$CT_NAME${CL}"
|
echo -e "${GN}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: 2Gb "
|
||||||
read SIZEDISK
|
read SIZEDISK
|
||||||
if [ -z $SIZEDISK ]; then SIZEDISK="2"; fi;
|
if [ -z $SIZEDISK ]; then SIZEDISK="2"; fi;
|
||||||
@ -142,7 +145,7 @@ header_info
|
|||||||
echo -e "${GN}Using CT Type ${BGN}$CT_TYPE1${CL}"
|
echo -e "${GN}Using CT Type ${BGN}$CT_TYPE1${CL}"
|
||||||
echo -e "${GN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${GN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${GN}Using ID ${BGN}$CT_ID${CL}"
|
echo -e "${GN}Using ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${GN}Using CT Name ${BGN}$CT_NAME${CL}"
|
echo -e "${GN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${GN}Using Disk Size ${BGN}$SIZEDISK${CL}"
|
echo -e "${GN}Using Disk Size ${BGN}$SIZEDISK${CL}"
|
||||||
echo -e "${YW}Storages Available:${CL}"
|
echo -e "${YW}Storages Available:${CL}"
|
||||||
echo " "
|
echo " "
|
||||||
@ -163,7 +166,7 @@ header_info
|
|||||||
echo -e "${GN}Using CT Type ${BGN}$CT_TYPE1${CL}"
|
echo -e "${GN}Using CT Type ${BGN}$CT_TYPE1${CL}"
|
||||||
echo -e "${GN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${GN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${GN}Using ID ${BGN}$CT_ID${CL}"
|
echo -e "${GN}Using ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${GN}Using CT Name ${BGN}$CT_NAME${CL}"
|
echo -e "${GN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${GN}Using Disk Size ${BGN}$SIZEDISK${CL}"
|
echo -e "${GN}Using Disk Size ${BGN}$SIZEDISK${CL}"
|
||||||
echo -e "${GN}Using Storage ${BGN}$STORAGETYPE${CL}"
|
echo -e "${GN}Using Storage ${BGN}$STORAGETYPE${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 "
|
||||||
@ -178,7 +181,7 @@ header_info
|
|||||||
echo -e "${GN}Using CT Type ${BGN}$CT_TYPE1${CL}"
|
echo -e "${GN}Using CT Type ${BGN}$CT_TYPE1${CL}"
|
||||||
echo -e "${GN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${GN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${GN}Using ID ${BGN}$CT_ID${CL}"
|
echo -e "${GN}Using ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${GN}Using CT Name ${BGN}$CT_NAME${CL}"
|
echo -e "${GN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${GN}Using Disk Size ${BGN}$SIZEDISK${CL}"
|
echo -e "${GN}Using Disk Size ${BGN}$SIZEDISK${CL}"
|
||||||
echo -e "${GN}Using Storage ${BGN}$STORAGETYPE${CL}"
|
echo -e "${GN}Using Storage ${BGN}$STORAGETYPE${CL}"
|
||||||
echo -e "${GN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${GN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
||||||
@ -194,7 +197,7 @@ header_info
|
|||||||
echo -e "${GN}Using CT Type ${BGN}$CT_TYPE1${CL}"
|
echo -e "${GN}Using CT Type ${BGN}$CT_TYPE1${CL}"
|
||||||
echo -e "${GN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${GN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${GN}Using ID ${BGN}$CT_ID${CL}"
|
echo -e "${GN}Using ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${GN}Using CT Name ${BGN}$CT_NAME${CL}"
|
echo -e "${GN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${GN}Using Disk Size ${BGN}$SIZEDISK${CL}"
|
echo -e "${GN}Using Disk Size ${BGN}$SIZEDISK${CL}"
|
||||||
echo -e "${GN}Using Storage ${BGN}$STORAGETYPE${CL}"
|
echo -e "${GN}Using Storage ${BGN}$STORAGETYPE${CL}"
|
||||||
echo -e "${GN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${GN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
||||||
@ -211,7 +214,7 @@ header_info
|
|||||||
echo -e "${GN}Using CT Type ${BGN}$CT_TYPE1${CL}"
|
echo -e "${GN}Using CT Type ${BGN}$CT_TYPE1${CL}"
|
||||||
echo -e "${GN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${GN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${GN}Using ID ${BGN}$CT_ID${CL}"
|
echo -e "${GN}Using ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${GN}Using CT Name ${BGN}$CT_NAME${CL}"
|
echo -e "${GN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${GN}Using Disk Size ${BGN}$SIZEDISK${CL}"
|
echo -e "${GN}Using Disk Size ${BGN}$SIZEDISK${CL}"
|
||||||
echo -e "${GN}Using Storage ${BGN}$STORAGETYPE${CL}"
|
echo -e "${GN}Using Storage ${BGN}$STORAGETYPE${CL}"
|
||||||
echo -e "${GN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${GN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
||||||
@ -233,7 +236,7 @@ header_info
|
|||||||
echo -e "${GN}Using CT Type ${BGN}$CT_TYPE1${CL}"
|
echo -e "${GN}Using CT Type ${BGN}$CT_TYPE1${CL}"
|
||||||
echo -e "${GN}Using CT Password ${BGN}$PW1${CL}"
|
echo -e "${GN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
echo -e "${GN}Using ID ${BGN}$CT_ID${CL}"
|
echo -e "${GN}Using ID ${BGN}$CT_ID${CL}"
|
||||||
echo -e "${GN}Using CT Name ${BGN}$CT_NAME${CL}"
|
echo -e "${GN}Using CT Name ${BGN}$HN${CL}"
|
||||||
echo -e "${GN}Using Disk Size ${BGN}$SIZEDISK${CL}"
|
echo -e "${GN}Using Disk Size ${BGN}$SIZEDISK${CL}"
|
||||||
echo -e "${GN}Using Storage ${BGN}$STORAGETYPE${CL}"
|
echo -e "${GN}Using Storage ${BGN}$STORAGETYPE${CL}"
|
||||||
echo -e "${GN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${GN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
||||||
|
Loading…
Reference in New Issue
Block a user