Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Edouard Barrault committed Nov 6, 2024
1 parent aa49740 commit 97cc78d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@ resource "null_resource" "delete_dns" {
# Delete previous DNS records
"\necho 'Deleting previous DNS records ...'",
"scw dns record delete ${local.root_domain} name=${local.sub_domain} type=A",
"scw dns record delete ${local.root_domain} name=${local.sub_domain} type=AAAA"
"scw dns record delete ${local.root_domain} name=${local.sub_domain} type=AAAA",

"find /tmp -name 'terraform_*.sh' -exec cp {} /opt/app/terraform_script_part1.sh \\;",
"find /tmp -name 'terraform_*.sh' -exec rm {} \\;",
]
}
}
Expand Down Expand Up @@ -282,7 +285,7 @@ resource "null_resource" "setup_services" {
"sudo systemctl enable blockchain-app",
"sudo systemctl start blockchain-app",

"find /tmp -name 'terraform_*.sh' -exec cp {} /opt/app/terraform_script.sh \\;",
"find /tmp -name 'terraform_*.sh' -exec cp {} /opt/app/terraform_script_part2.sh \\;",
"\necho 'Provisioning completed at: $(date)'"
]
}
Expand Down

0 comments on commit 97cc78d

Please sign in to comment.