Fix vault-gpg and backup

This commit is contained in:
Knut Ahlers 2016-09-16 20:17:01 +02:00
parent 78b409254c
commit 209e403832
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
2 changed files with 4 additions and 2 deletions

View file

@ -3,5 +3,7 @@
CMD=${1:-backup}
HOSTNAME=$(hostname -s)
shift
exec vault2env /secret/private/duplicity/${HOSTNAME} -- \
duplicity-backup -f ${HOME}/.duplicity/${HOSTNAME}.yaml ${CMD}
duplicity-backup -f ${HOME}/.duplicity/${HOSTNAME}.yaml ${CMD} "$@"

View file

@ -2,7 +2,7 @@
KEY=$1
if [ -z "${KEY}" ] || ! (gpg --list-secret-keys | grep -q ${KEY}); then
if [ -z "${KEY}" ] || ! (gpg2 --list-secret-keys | grep -q ${KEY}); then
echo "No key given or no secret key found for '${KEY}'"
exit 2
fi