From 5a86b8fe04f68c92a1fda7e90b3d516ba9309af0 Mon Sep 17 00:00:00 2001 From: Daniel Mikula Date: Mon, 22 May 2023 15:48:59 +0200 Subject: [PATCH] unified naming --- ec2.tf | 8 ++++---- setup_scripts/{duckdns.sh => install_duckdns.sh} | 0 setup_scripts/script.sh | 4 ---- 3 files changed, 4 insertions(+), 8 deletions(-) rename setup_scripts/{duckdns.sh => install_duckdns.sh} (100%) delete mode 100644 setup_scripts/script.sh 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