add simple draft script for future use

This commit is contained in:
Johanna Dorothea Reichmann 2019-08-02 19:32:07 +02:00
commit fdeae4bb94
Signed by: transcaffeine
GPG Key ID: 03624C433676E465

26
vault.sh Executable file
View File

@ -0,0 +1,26 @@
#!/bin/bash
set -e -u
# Keyserver to use. You need to trust this keyserver that the uid is not spoofed when receiving keys
KEYSERVER=""
# File which contains a list of uid's to receive and encrypt the vault for
KEY_FILE=""
ACTION="$1"
# default action is vault decrypt
if [[ -z "$ACTION" ]]; then
ACTION="decrypt"
fi
case "$ACTION" in
"decrypt")
gpg2 --batch --use-agent --decrypt $(dirname $0)/vault_passphrase.gpg 2>/dev/null
;;
"reencrypt")
;;
esac