aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2019-06-09 21:41:31 -0300
committerEuAndreh <eu@euandre.org>2019-06-09 21:41:31 -0300
commit9768bf4dc7d146f23caeb7db61471c9bde40b593 (patch)
treed35e41f0a7102f84932a3f4ac056b800dde6d2f4 /scripts
parentDon't use terraform-full derivation (diff)
downloadserver-9768bf4dc7d146f23caeb7db61471c9bde40b593.tar.gz
server-9768bf4dc7d146f23caeb7db61471c9bde40b593.tar.xz
Revert "Create Terraform plan before shutting down running containers"
This reverts commit c8963acd02a5095bafb46c79abd45eec45059707.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/ci/provision.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/ci/provision.sh b/scripts/ci/provision.sh
index cdd357e..3b2d912 100755
--- a/scripts/ci/provision.sh
+++ b/scripts/ci/provision.sh
@@ -8,12 +8,6 @@ cd ../../
VPS_COMMIT_SHA="$(git rev-parse HEAD)"
export VPS_COMMIT_SHA
-echo "Initializing Terraform..."
-ln -s "$(command -v terraform-godaddy)" terraform-provider-godaddy
-terraform --version
-terraform init
-echo "Done."
-
setup_borg_files() {
local -r template_file="${1}"
local -r destination_name="${2}"
@@ -33,6 +27,12 @@ setup_borg_files ./scripts/box/create-backup.env.sh create-backup.sh
ssh "$TLD" /home/vps/create-backup.sh || echo "FAILED TO CREATE BACKUP."
echo "Done."
+echo "Initializing Terraform..."
+ln -s "$(command -v terraform-godaddy)" terraform-provider-godaddy
+terraform --version
+terraform init
+echo "Done."
+
if [[ "${DESTROY_VOLUME:-}" != "" ]]; then
echo "Destroying existing infrastructure..."
terraform destroy -input=false -auto-approve