KeePassXC wrapper script
Unlock KeePassXC automatically using GnuPG
This commit is contained in:
parent
901eab1886
commit
9c207c4c81
1 changed files with 16 additions and 0 deletions
16
scripts/keepassxc-wrapper.sh
Executable file
16
scripts/keepassxc-wrapper.sh
Executable file
|
@ -0,0 +1,16 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
PASSWORD_FILE=~/dotfiles/dotdotfiles/keepassxc/password.gpg
|
||||||
|
KEEPASS_FILE=~/cloud/keys/2017-10.kdbx
|
||||||
|
|
||||||
|
if [ ! -f "$PASSWORD_FILE" ]; then
|
||||||
|
echo "No password file."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -f "$KEEPASS_FILE" ]; then
|
||||||
|
echo "No KeePass file."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
gpg --textmode -d "$PASSWORD_FILE" | keepassxc --pw-stdin "$KEEPASS_FILE"
|
Loading…
Reference in a new issue