diff --git a/deploy/terraform/deploy.tf b/deploy/terraform/deploy.tf index fbb3fc3..663f386 100644 --- a/deploy/terraform/deploy.tf +++ b/deploy/terraform/deploy.tf @@ -21,6 +21,7 @@ resource "terraform_data" "app_deploy" { inline = [ "set -e", "cd /opt/vcard4", + "git config --global --add safe.directory /opt/vcard4", "git fetch --depth 1 origin ${var.repo_branch}", "git reset --hard origin/${var.repo_branch}", "DOMAIN='${var.domain}' RUN_MIGRATIONS='${count.index == 0 ? "true" : "false"}' bash /opt/vcard4/deploy/update.sh",