From e5e43d6611677fdea86d9f0b827eccde508def68 Mon Sep 17 00:00:00 2001 From: tteckster Date: Sun, 29 May 2022 11:06:14 -0400 Subject: [PATCH] Update vaultwarden-v3.sh --- ct/vaultwarden-v3.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/ct/vaultwarden-v3.sh b/ct/vaultwarden-v3.sh index c8d287f2..8295542d 100644 --- a/ct/vaultwarden-v3.sh +++ b/ct/vaultwarden-v3.sh @@ -85,8 +85,8 @@ function default_settings() { CT_ID=$NEXTID echo -e "${DGN}Using CT Name ${BGN}$NSAPP${CL}" HN=$NSAPP - echo -e "${DGN}Using Disk Size ${BGN}8${CL}${DGN}GB${CL}" - DISK_SIZE="8" + echo -e "${DGN}Using Disk Size ${BGN}6${CL}${DGN}GB${CL}" + DISK_SIZE="6" echo -e "${DGN}Using ${BGN}4${CL}${DGN}vCPU${CL}" CORE_COUNT="4" echo -e "${DGN}Using ${BGN}4096${CL}${DGN}MiB RAM${CL}" @@ -164,9 +164,9 @@ header_info echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}" echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}" echo -e "${DGN}Using CT Name ${BGN}$HN${CL}" - echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 8 " + echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 6 " read DISK_SIZE - if [ -z $DISK_SIZE ]; then DISK_SIZE="8"; fi; + if [ -z $DISK_SIZE ]; then DISK_SIZE="6"; 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}${DGN}GB${CL}" echo -e " ${CM}${CL} \r" @@ -346,6 +346,11 @@ lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/ IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}') +msg_info "Setting Container to Normal Resources" +pct set $CTID -memory 512 +pct set $CTID -cores 1 +msg_ok "Set Container to Normal Resources" + msg_ok "Completed Successfully!\n" echo -e "${APP} should be reachable by going to the following URL. ${BL}http://${IP}:8000${CL} \n"