mirror of https://github.com/tteck/Proxmox.git
parent
5053a545ee
commit
9d4543859c
|
@ -315,15 +315,16 @@ WVRELEASE=$(curl -s https://api.github.com/repos/dani-garcia/bw_web_builds/relea
|
||||||
grep "tag_name" |
|
grep "tag_name" |
|
||||||
awk '{print substr($2, 2, length($2)-3) }')
|
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 \
|
"1" "VaultWarden $VAULT" ON \
|
||||||
"2" "Web-Vault $WVRELEASE" OFF \
|
"2" "Web-Vault $WVRELEASE" OFF \
|
||||||
|
"3" "Get Admin Token" OFF \
|
||||||
3>&1 1>&2 2>&3)
|
3>&1 1>&2 2>&3)
|
||||||
|
|
||||||
clear
|
clear
|
||||||
header_info
|
header_info
|
||||||
echo -e "\n ⚠️ Ensure you set 2vCPU & 3072MiB RAM MIMIMUM!!! \n"
|
|
||||||
if [ "$UPD" == "1" ]; then
|
if [ "$UPD" == "1" ]; then
|
||||||
|
echo -e "\n ⚠️ Ensure you set 2vCPU & 3072MiB RAM MIMIMUM!!! \n"
|
||||||
msg_info "Stopping Vaultwarden"
|
msg_info "Stopping Vaultwarden"
|
||||||
systemctl stop vaultwarden.service
|
systemctl stop vaultwarden.service
|
||||||
msg_ok "Stopped Vaultwarden"
|
msg_ok "Stopped Vaultwarden"
|
||||||
|
@ -373,6 +374,10 @@ msg_ok "Started Vaultwarden"
|
||||||
msg_ok "$WVRELEASE Update Successful"
|
msg_ok "$WVRELEASE Update Successful"
|
||||||
exit;
|
exit;
|
||||||
fi
|
fi
|
||||||
|
if [ "$UPD" == "3" ]; then
|
||||||
|
cat /opt/vaultwarden/.env | grep "ADMIN_TOKEN"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
clear
|
clear
|
||||||
|
|
Loading…
Reference in New Issue