diff --git a/examples/templates/fly-docker-image/main.tf b/examples/templates/fly-docker-image/main.tf index 389e733ae8592..11629217c9c47 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 }