Fix vault-gpg and backup
This commit is contained in:
parent
78b409254c
commit
209e403832
2 changed files with 4 additions and 2 deletions
|
@ -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} "$@"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue