Update alpine-vaultwarden-v5-install.sh

This commit is contained in:
tteckster 2023-03-11 09:50:42 -05:00 committed by GitHub
parent 1a1cd2d0f9
commit e1f4f4b436
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -93,7 +93,7 @@ set -e
trap 'error_handler $LINENO "$BASH_COMMAND"' ERR trap 'error_handler $LINENO "$BASH_COMMAND"' ERR
msg_info "Updating Container OS" msg_info "Updating Container OS"
$STD apk update $STD apk update -a
$STD apk upgrade $STD apk upgrade
msg_ok "Updated Container OS" msg_ok "Updated Container OS"
@ -119,14 +119,6 @@ $STD rc-service vaultwarden start
$STD rc-update add vaultwarden default $STD rc-update add vaultwarden default
msg_ok "Installed Vaultwarden" msg_ok "Installed Vaultwarden"
msg_info "Downloading Web-Vault"
WEBVAULT=$(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) }')
$STD curl -fsSLO https://github.com/dani-garcia/bw_web_builds/releases/download/$WEBVAULT/bw_web_$WEBVAULT.tar.gz
$STD tar -xzf bw_web_$WEBVAULT.tar.gz -C /var/lib/vaultwarden/
msg_ok "Downloaded Web-Vault"
echo -e "$APPLICATION LXC provided by https://tteck.github.io/Proxmox/\n" > /etc/motd echo -e "$APPLICATION LXC provided by https://tteck.github.io/Proxmox/\n" > /etc/motd
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
$STD rc-update add sshd $STD rc-update add sshd