mirror of
https://github.com/tteck/Proxmox.git
synced 2024-12-02 02:53:58 +01:00
Update alpine-vaultwarden-v5-install.sh
This commit is contained in:
parent
1a1cd2d0f9
commit
e1f4f4b436
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user