Cleanup backup script

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-02-10 12:15:24 +01:00
parent aa49fc68e1
commit 5eca93a4c7
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -1,7 +1,7 @@
#!/bin/bash -e
#!/bin/bash
set -euo pipefail
ARGS="$@"
[ -z "${ARGS}" ] && ARGS="backup"
ARGS=${@:-backup}
HOSTNAME=$(hostname -s)
exec vault2env --key=/secret/private/duplicity/${HOSTNAME} -- \