mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-07-15 18:37:37 +00:00
.github
ct
misc
images
add-tailscale-lxc.sh
adguard-update.sh
bluetooth.sh
code-server.sh
container-restore-from-backup.sh
core-restore-from-backup.sh
core-update.sh
crowdsec.sh
daemonsync_2.2.0.0059_amd64.deb
dashy-update.sh
edge-kernel.sh
emby-update.sh
filebrowser.sh
frigate-support.sh
ha-copy-data-podman.sh
ha-copy-data.sh
hacontainer2hacore-data.sh
hacore2hacontainer-data.sh
hacore2hacore-data.sh
hacs-core.sh
hacs.sh
heimdalldashboard-all-update.sh
homepage-update.sh
kernel-clean.sh
latest-update-menu.sh
navidrome-update.sh
nocodb-update.sh
node-red-themes.sh
npm_update.sh
paperless-ngx-update.sh
photoprism-update.sh
pms-copy-data.sh
podman-copy-data-docker.sh
podman.md
podman_hacs.sh
post-pbs-install.sh
post-pve-install.sh
pyenv.sh
scaling-governor.sh
technitiumdns-update.sh
trilium-update.sh
unifi-update.sh
update-lxcs.sh
uptimekuma-update.sh
usb-passthrough.sh
vaultwarden-update.sh
web-vault-update.sh
webmin.sh
z2m-copy-data.sh
zwave-copy-data.sh
zwave-js-ui-update.sh
setup
vm
CHANGELOG.MD
LICENSE
README.md
51 lines
1.7 KiB
Bash
51 lines
1.7 KiB
Bash
#!/usr/bin/env bash
|
|
VWRELEASE=$(curl -s https://api.github.com/repos/dani-garcia/bw_web_builds/releases/latest |
|
|
grep "tag_name" |
|
|
awk '{print substr($2, 2, length($2)-3) }')
|
|
|
|
RD=$(echo "\033[01;31m")
|
|
BL=$(echo "\033[36m")
|
|
CM='\xE2\x9C\x94\033'
|
|
GN=$(echo "\033[1;92m")
|
|
CL=$(echo "\033[m")
|
|
function update_info {
|
|
echo -e "${BL}
|
|
__ __ _ _ _
|
|
\ \ / / | | | | |
|
|
\ \ /\ / /__| |__ ________ ____ _ _ _| | |_
|
|
\ \/ \/ / _ \ _ \______\ \ / / _ | | | | | __|
|
|
\ /\ / __/ |_) | \ V / (_| | |_| | | |_
|
|
\/ \/ \___|_.__/ \_/ \__,_|\__,_|_|\__|
|
|
${VWRELEASE} UPDATE
|
|
${CL}"
|
|
}
|
|
update_info
|
|
while true; do
|
|
read -p "This will Update Web-Vault to $VWRELEASE. Proceed(y/n)?" yn
|
|
case $yn in
|
|
[Yy]*) break ;;
|
|
[Nn]*) exit ;;
|
|
*) echo "Please answer yes or no." ;;
|
|
esac
|
|
done
|
|
sleep 2
|
|
echo -e "${GN} Stopping Vaultwarden... ${CL}"
|
|
systemctl stop vaultwarden.service
|
|
sleep 1
|
|
|
|
echo -e "${GN} Updating to ${VWRELEASE}... ${CL}"
|
|
curl -fsSLO https://github.com/dani-garcia/bw_web_builds/releases/download/$VWRELEASE/bw_web_$VWRELEASE.tar.gz &>/dev/null
|
|
if [ -d "/var/lib/vaultwarden" ]; then
|
|
tar -xzf bw_web_$VWRELEASE.tar.gz -C /var/lib/vaultwarden/ &>/dev/null
|
|
else
|
|
tar -zxf bw_web_$VWRELEASE.tar.gz -C /opt/vaultwarden/ &>/dev/null
|
|
fi
|
|
|
|
echo -e "${GN} Cleaning up... ${CL}"
|
|
rm bw_web_$VWRELEASE.tar.gz
|
|
|
|
echo -e "${GN} Starting Vaultwarden... ${CL}"
|
|
systemctl start vaultwarden.service
|
|
sleep 1
|
|
echo -e "${GN} Finished Update ${CL}"
|