diff --git a/ct/vaultwarden-v5.sh b/ct/vaultwarden-v5.sh index 65c34c46..756b6439 100644 --- a/ct/vaultwarden-v5.sh +++ b/ct/vaultwarden-v5.sh @@ -315,15 +315,16 @@ WVRELEASE=$(curl -s https://api.github.com/repos/dani-garcia/bw_web_builds/relea grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') -UPD=$(whiptail --title "UPDATE" --radiolist --cancel-button Exit-Script "Choose Type" 8 58 2 \ +UPD=$(whiptail --title "UPDATE" --radiolist --cancel-button Exit-Script "Choose Type" 8 58 3 \ "1" "VaultWarden $VAULT" ON \ "2" "Web-Vault $WVRELEASE" OFF \ + "3" "Get Admin Token" OFF \ 3>&1 1>&2 2>&3) clear header_info -echo -e "\n ⚠️ Ensure you set 2vCPU & 3072MiB RAM MIMIMUM!!! \n" if [ "$UPD" == "1" ]; then +echo -e "\n ⚠️ Ensure you set 2vCPU & 3072MiB RAM MIMIMUM!!! \n" msg_info "Stopping Vaultwarden" systemctl stop vaultwarden.service msg_ok "Stopped Vaultwarden" @@ -373,6 +374,10 @@ msg_ok "Started Vaultwarden" msg_ok "$WVRELEASE Update Successful" exit; fi +if [ "$UPD" == "3" ]; then +cat /opt/vaultwarden/.env | grep "ADMIN_TOKEN" +exit +fi } clear