From b805ec4a77121bf387e07e4c243e2a4ba39e5e95 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 16 Sep 2016 21:33:29 +0200 Subject: [PATCH] Fix exitting backup cron --- bin/backup | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bin/backup b/bin/backup index 339e446..f63d7e2 100755 --- a/bin/backup +++ b/bin/backup @@ -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}"