bitwarden install changes
This commit is contained in:
5
additional_install.sh
Normal file → Executable file
5
additional_install.sh
Normal file → Executable file
@@ -10,8 +10,11 @@ fi;
|
||||
|
||||
if [[ "$BITWARDEN" == "YES" ]]; then
|
||||
git clone ssh://$GIT_REPO/$ORGANIZATION/bitwarden.git /tmp/bitwarden
|
||||
|
||||
BITWARDEN_TOKEN=$(openssl rand -base64 48);
|
||||
|
||||
sed -i "s/DOMAIN_NAME/$BITWARDEN_DOMAIN/g" /tmp/bitwarden/bitwarden-secret.json
|
||||
sed -i "s/USERNAME/$BITWARDEN_USERNAME/g" /tmp/bitwarden/bitwarden-secret.json
|
||||
sed -i "s/ADMIN_TOKEN/$BITWARDEN_TOKEN/g" /tmp/bitwarden/bitwarden-secret.json
|
||||
cp -rv /tmp/bitwarden/bitwarden-secret.json /etc/user/secret/bitwarden-secret.json;
|
||||
fi;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user