From 3f3acea94c7e706cfe345a92c7f2640e9a0a74fd Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 10 Jun 2019 11:18:50 -0300 Subject: Don't run restore backup Ansible task when not required Instead of performing this task on the generated =restore-backup.sh= file, do it on provision.yaml. The boolean logic is less confusing and the interpolation is less tricky. --- scripts/box/restore-backup.env.sh | 7 ------- 1 file changed, 7 deletions(-) (limited to 'scripts') diff --git a/scripts/box/restore-backup.env.sh b/scripts/box/restore-backup.env.sh index 99b807c..151ded5 100755 --- a/scripts/box/restore-backup.env.sh +++ b/scripts/box/restore-backup.env.sh @@ -1,13 +1,6 @@ #!/usr/bin/env bash set -Eeuo pipefail -# Check for ${DOLLAR}{DESTROY_VOLUME} interpolated value -[[ "${DESTROY_VOLUME}" != "" ]] || { - echo "Volume is not fresh." - echo "Skipping restoring from backup." - exit 0 -} - export BORG_REMOTE_PATH="${BORG_REMOTE_PATH}" export BORG_PASSPHRASE="${BORG_PASSPHRASE}" -- cgit v1.2.3