diff options
author | EuAndreh <eu@euandre.org> | 2019-06-10 11:18:50 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2019-06-10 11:19:25 -0300 |
commit | 3f3acea94c7e706cfe345a92c7f2640e9a0a74fd (patch) | |
tree | 02b3e263b272c71ff16a4352a27d5f5248e7cbf1 /scripts | |
parent | Create generated-known-hosts.txt twice (diff) | |
download | server-3f3acea94c7e706cfe345a92c7f2640e9a0a74fd.tar.gz server-3f3acea94c7e706cfe345a92c7f2640e9a0a74fd.tar.xz |
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.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/box/restore-backup.env.sh | 7 |
1 files changed, 0 insertions, 7 deletions
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}" |