mirror of
https://github.com/tteck/Proxmox.git
synced 2024-11-17 20:11:17 +00:00
Update vaultwarden-update.sh
This commit is contained in:
parent
32e2d75369
commit
b8ba61629a
@ -35,13 +35,12 @@ systemctl stop vaultwarden.service
|
|||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
echo -e "${GN} Updating to ${VWRELEASE}... ${CL}"
|
echo -e "${GN} Updating to ${VWRELEASE}... ${CL}"
|
||||||
wget https://github.com/dani-garcia/bw_web_builds/releases/download/$VWRELEASE/bw_web_$VWRELEASE.tar.gz &>/dev/null
|
curl -fsSLO https://github.com/dani-garcia/bw_web_builds/releases/download/$VWRELEASE/bw_web_$VWRELEASE.tar.gz &>/dev/null
|
||||||
tar -xzf bw_web_$VWRELEASE.tar.gz &>/dev/null
|
if [ -d "/var/lib/vaultwarden" ]; then
|
||||||
cp -R web-vault /var/lib/vaultwarden/ &>/dev/null
|
tar -xzf bw_web_$VWRELEASE.tar.gz -C /var/lib/vaultwarden/ &>/dev/null
|
||||||
|
else
|
||||||
echo -e "${GN} Cleanup... ${CL}"
|
tar -zxf bw_web_$VWRELEASE.tar.gz -C /opt/vaultwarden/ &>/dev/null
|
||||||
rm -r bw_web_$VWRELEASE.tar.gz web-vault
|
fi
|
||||||
sleep 2
|
|
||||||
|
|
||||||
echo -e "${GN} Starting Vaultwarden... ${CL}"
|
echo -e "${GN} Starting Vaultwarden... ${CL}"
|
||||||
systemctl start vaultwarden.service
|
systemctl start vaultwarden.service
|
||||||
|
Loading…
Reference in New Issue
Block a user