Update vaultwarden-v3.sh

This commit is contained in:
tteckster 2022-05-29 11:06:14 -04:00 committed by GitHub
parent b8ba61629a
commit e5e43d6611
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,8 +85,8 @@ 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}8${CL}${DGN}GB${CL}" echo -e "${DGN}Using Disk Size ${BGN}6${CL}${DGN}GB${CL}"
DISK_SIZE="8" DISK_SIZE="6"
echo -e "${DGN}Using ${BGN}4${CL}${DGN}vCPU${CL}" echo -e "${DGN}Using ${BGN}4${CL}${DGN}vCPU${CL}"
CORE_COUNT="4" CORE_COUNT="4"
echo -e "${DGN}Using ${BGN}4096${CL}${DGN}MiB RAM${CL}" 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 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: 8 " echo -e "${YW}Enter a Disk Size, or Press [ENTER] for Default: 6 "
read DISK_SIZE 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; 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 -en "${DGN}Set Disk Size To ${BL}$DISK_SIZE${CL}${DGN}GB${CL}"
echo -e " ${CM}${CL} \r" 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}') 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" msg_ok "Completed Successfully!\n"
echo -e "${APP} should be reachable by going to the following URL. echo -e "${APP} should be reachable by going to the following URL.
${BL}http://${IP}:8000${CL} \n" ${BL}http://${IP}:8000${CL} \n"