Made it compatible with any bitwarden instance
This commit is contained in:
parent
844202f960
commit
18eacf97ec
@ -1,8 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Login to a VaultWarden instance
|
# Login to a custom Bitwarden instance
|
||||||
echo "Connecting to Vaultwarden instance at $VAULTWARDEN_URL"
|
if [ "$BITWARDEN_URL" ]; then
|
||||||
bw config server "$VAULTWARDEN_URL"
|
echo "Connecting to Bitwarden instance at $BITWARDEN_URL"
|
||||||
|
bw config server "$BITWARDEN_URL"
|
||||||
|
fi
|
||||||
|
|
||||||
BW_SESSION="$(bw login --raw)"
|
BW_SESSION="$(bw login --raw)"
|
||||||
export BW_SESSION
|
export BW_SESSION
|
||||||
|
|
||||||
@ -13,7 +16,7 @@ export BW_PATH
|
|||||||
DATABASE_PATH="/exports/$DATABASE_NAME"
|
DATABASE_PATH="/exports/$DATABASE_NAME"
|
||||||
export DATABASE_PATH
|
export DATABASE_PATH
|
||||||
|
|
||||||
# Convert the VaultWarden data to a KeePass file
|
# Convert the Bitwarden data to a KeePass file
|
||||||
bw sync
|
bw sync
|
||||||
python3 bitwarden-to-keepass.py
|
python3 bitwarden-to-keepass.py
|
||||||
bw lock
|
bw lock
|
||||||
|
Loading…
x
Reference in New Issue
Block a user