Fix exitting backup cron
This commit is contained in:
parent
1d3247aa44
commit
b805ec4a77
1 changed files with 3 additions and 4 deletions
|
@ -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}"
|
||||
|
|
Loading…
Reference in a new issue