From 5037f87a3641fafad86e9978b85dab8201f79bb6 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Fri, 24 Mar 2023 15:07:20 +0300 Subject: [PATCH 1/4] Update main.tf Upgrade coder provider --- examples/templates/fly-docker-image/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/templates/fly-docker-image/main.tf b/examples/templates/fly-docker-image/main.tf index 389e733ae8592..e2cb8ef2ddebb 100644 --- a/examples/templates/fly-docker-image/main.tf +++ b/examples/templates/fly-docker-image/main.tf @@ -6,7 +6,7 @@ terraform { } coder = { source = "coder/coder" - version = "~>0.6.17" + version = "~>0.6.21" } } } From 720d66c09ce12fda9352abad779b4692dd08d109 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Fri, 24 Mar 2023 15:10:10 +0300 Subject: [PATCH 2/4] fix path in startup_script --- examples/templates/fly-docker-image/main.tf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/templates/fly-docker-image/main.tf b/examples/templates/fly-docker-image/main.tf index e2cb8ef2ddebb..e943855ee63d9 100644 --- a/examples/templates/fly-docker-image/main.tf +++ b/examples/templates/fly-docker-image/main.tf @@ -281,7 +281,8 @@ resource "coder_agent" "main" { sudo hostname -b "${data.coder_workspace.me.name}-fly" # Install the Fly CLI and add it to the PATH curl -L https://fly.io/install.sh | sh - echo "export PATH=\$PATH:/home/coder/.fly" >> ~/.bashrc + echo "export PATH=\$PATH:/home/coder/.fly/bin" >> ~/.bashrc + source ~/.bashrc EOT } From f3ec97de729463c64bf28c952f4e45bacaf813be Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Fri, 24 Mar 2023 17:26:33 +0300 Subject: [PATCH 3/4] Revert "Update main.tf" This reverts commit 5037f87a3641fafad86e9978b85dab8201f79bb6. --- examples/templates/fly-docker-image/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/templates/fly-docker-image/main.tf b/examples/templates/fly-docker-image/main.tf index e943855ee63d9..6d29d267dd177 100644 --- a/examples/templates/fly-docker-image/main.tf +++ b/examples/templates/fly-docker-image/main.tf @@ -6,7 +6,7 @@ terraform { } coder = { source = "coder/coder" - version = "~>0.6.21" + version = "~>0.6.17" } } } From b1f397c5f013afa176175c4356dd8b2d964d93f3 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Fri, 24 Mar 2023 17:28:38 +0300 Subject: [PATCH 4/4] fix typo --- examples/templates/fly-docker-image/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/templates/fly-docker-image/main.tf b/examples/templates/fly-docker-image/main.tf index 6d29d267dd177..11629217c9c47 100644 --- a/examples/templates/fly-docker-image/main.tf +++ b/examples/templates/fly-docker-image/main.tf @@ -281,7 +281,7 @@ resource "coder_agent" "main" { sudo hostname -b "${data.coder_workspace.me.name}-fly" # Install the Fly CLI and add it to the PATH curl -L https://fly.io/install.sh | sh - echo "export PATH=\$PATH:/home/coder/.fly/bin" >> ~/.bashrc + echo "export PATH=$PATH:/home/coder/.fly/bin" >> ~/.bashrc source ~/.bashrc EOT }