Adjust script to new vault2env version

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2017-04-23 22:16:00 +02:00
parent 2cfc1b8b54
commit 4f6dc7b5e8
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -4,5 +4,5 @@ ARGS="$@"
[ -z "${ARGS}" ] && ARGS="backup" [ -z "${ARGS}" ] && ARGS="backup"
HOSTNAME=$(hostname -s) HOSTNAME=$(hostname -s)
exec vault2env /secret/private/duplicity/${HOSTNAME} -- \ exec vault2env --key=/secret/private/duplicity/${HOSTNAME} -- \
duplicity-backup -f ${HOME}/.duplicity/${HOSTNAME}.yaml ${ARGS} duplicity-backup -f ${HOME}/.duplicity/${HOSTNAME}.yaml ${ARGS}