Encrypting the vault password with GPG protects the key when stored on disk and allows it to be accessed non-interactively, as long as the GnuPG agent is set up correctly.
3 lines
60 B
Bash
Executable File
3 lines
60 B
Bash
Executable File
#!/bin/sh
|
|
exec gpg --quiet --batch --decrypt "${0%.sh}.gpg"
|