Fix exitting backup cron

This commit is contained in:
Knut Ahlers 2016-09-16 21:33:29 +02:00
parent 1d3247aa44
commit b805ec4a77
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -1,9 +1,8 @@
#!/bin/bash -e
CMD=${1:-backup}
ARGS="$@"
[ -z "${ARGS}" ] && ARGS="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 "${ARGS}"