Update alpine-vaultwarden.sh

indentation
pull/1220/head
tteckster 2 years ago committed by GitHub
parent cf388a0f7c
commit 4fb8b00240
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 33
      ct/alpine-vaultwarden.sh

@ -6,8 +6,8 @@ source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/next/misc/alpin
# https://github.com/tteck/Proxmox/raw/main/LICENSE # https://github.com/tteck/Proxmox/raw/main/LICENSE
function header_info { function header_info {
clear clear
cat <<"EOF" cat <<"EOF"
_ __ ____ __ _ __ ____ __
| | / /___ ___ __/ / /__ ______ __________/ /__ ____ | | / /___ ___ __/ / /__ ______ __________/ /__ ____
| | / / __ `/ / / / / __/ | /| / / __ `/ ___/ __ / _ \/ __ \ | | / / __ `/ / / / / __/ | /| / / __ `/ ___/ __ / _ \/ __ \
@ -52,29 +52,30 @@ function default_settings() {
} }
function update_script() { function update_script() {
while true; do while true; do
CHOICE=$(whiptail --title "SUPPORT" --menu "Select option" 11 58 2 \ CHOICE=$(
"1" "Update VaultWarden" \ whiptail --title "SUPPORT" --menu "Select option" 11 58 2 \
"2" "Show Admin Token" 3>&2 2>&1 1>&3 "1" "Update VaultWarden" \
) "2" "Show Admin Token" 3>&2 2>&1 1>&3
exit_status=$? )
if [ $exit_status == 1 ] ; then exit_status=$?
if [ $exit_status == 1 ]; then
clear clear
exit-script exit-script
fi fi
header_info header_info
case $CHOICE in case $CHOICE in
1 ) 1)
apk update && apk upgrade apk update && apk upgrade
exit exit
;; ;;
2 ) 2)
whiptail --title "ADMIN TOKEN" --msgbox "$(cat /etc/conf.d/vaultwarden | grep ADMIN_TOKEN | awk '{print substr($2, 13) }')" 7 68 whiptail --title "ADMIN TOKEN" --msgbox "$(cat /etc/conf.d/vaultwarden | grep ADMIN_TOKEN | awk '{print substr($2, 13) }')" 7 68
clear clear
exit exit
;; ;;
esac esac
done done
} }
start start

Loading…
Cancel
Save