From 48f9521fcbf74f0e636f9d9bee7e75edee1a9a66 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Mon, 27 Mar 2023 23:04:03 +0300 Subject: [PATCH] fix: fix `PATH` of `flyctl` cli in `fly-docker-image` template (#6772) * Update main.tf Upgrade coder provider * fix path in startup_script * Revert "Update main.tf" This reverts commit 5037f87a3641fafad86e9978b85dab8201f79bb6. --- 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 389e733ae8..11629217c9 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 }