diff --git a/ec2.tf b/ec2.tf index 8926333..44172a5 100644 --- a/ec2.tf +++ b/ec2.tf @@ -25,16 +25,16 @@ resource "aws_instance" "k3s_box" { } provisioner "file" { - source = "./setup_scripts/duckdns.sh" - destination = "/home/ec2-user/duckdns.sh" + source = "./setup_scripts/install_duckdns.sh" + destination = "/home/ec2-user/install_duckdns.sh" } provisioner "remote-exec" { inline = [ "chmod +x /home/ec2-user/install_crontab.sh", "/home/ec2-user/install_crontab.sh", - "chmod +x /home/ec2-user/duckdns.sh", - "/home/ec2-user/duckdns.sh ${var.duckdns_domain} ${data.aws_ssm_parameter.duckdns_token.token}" + "chmod +x /home/ec2-user/install_duckdns.sh", + "/home/ec2-user/install_duckdns.sh ${var.duckdns_domain} ${data.aws_ssm_parameter.duckdns_token.token}" ] } diff --git a/setup_scripts/duckdns.sh b/setup_scripts/install_duckdns.sh similarity index 100% rename from setup_scripts/duckdns.sh rename to setup_scripts/install_duckdns.sh diff --git a/setup_scripts/script.sh b/setup_scripts/script.sh deleted file mode 100644 index 8a19255..0000000 --- a/setup_scripts/script.sh +++ /dev/null @@ -1,4 +0,0 @@ -#! /bin/bash - -touch ~/hello.txt -echo "hello you" >> ~/hello.txt \ No newline at end of file