comparison .chezmoiscripts/run_onchange_after_19-install-bitwarden.sh.tmpl @ 1085:3bcc2c5ddef3 draft

fix: add dependencies for bitwarden
author Zeger Van de Vannet <zeger@vandevan.net>
date Mon, 03 Mar 2025 09:08:14 +0100
parents 1fcc8b0ca8e2
children a1fab5298ef6
comparison
equal deleted inserted replaced
1084:0ec3bf0cdf2f 1085:3bcc2c5ddef3
1 {{ if (and (eq .chezmoi.os "linux") (eq .chezmoi.osRelease.name "Ubuntu" )) -}} 1 {{ if (and (eq .chezmoi.os "linux") (eq .chezmoi.osRelease.name "Ubuntu" )) -}}
2 #!/usr/bin/env bash 2 #!/usr/bin/env bash
3 3
4 set -xe 4 set -xe
5
6 sudo apt install -y libnss3 libsecret-1-0 libxss1
5 7
6 DOWNLOADFILE=/tmp/bitwarden.deb 8 DOWNLOADFILE=/tmp/bitwarden.deb
7 curl -fsSL "https://github.com/bitwarden/clients/releases/download/cli-v2024.2.0/bw-linux-2024.2.0.zip" | zcat | install -m 755 /dev/stdin $HOME/bin/bw 9 curl -fsSL "https://github.com/bitwarden/clients/releases/download/cli-v2024.2.0/bw-linux-2024.2.0.zip" | zcat | install -m 755 /dev/stdin $HOME/bin/bw
8 curl -fsSL "https://github.com/bitwarden/clients/releases/download/desktop-v2024.2.0/Bitwarden-2024.2.0-amd64.deb" > $DOWNLOADFILE 10 curl -fsSL "https://github.com/bitwarden/clients/releases/download/desktop-v2024.2.0/Bitwarden-2024.2.0-amd64.deb" > $DOWNLOADFILE
9 sudo dpkg --install --skip-same-version $DOWNLOADFILE 11 sudo dpkg --install --skip-same-version $DOWNLOADFILE