Skip to content

Commit 48f9521

Browse files
authored
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 5037f87.
1 parent ad0c0df commit 48f9521

File tree

1 file changed

+2
-1
lines changed
  • examples/templates/fly-docker-image

1 file changed

+2
-1
lines changed

examples/templates/fly-docker-image/main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,8 @@ resource "coder_agent" "main" {
281281
sudo hostname -b "${data.coder_workspace.me.name}-fly"
282282
# Install the Fly CLI and add it to the PATH
283283
curl -L https://fly.io/install.sh | sh
284-
echo "export PATH=\$PATH:/home/coder/.fly" >> ~/.bashrc
284+
echo "export PATH=$PATH:/home/coder/.fly/bin" >> ~/.bashrc
285+
source ~/.bashrc
285286
EOT
286287
}
287288

0 commit comments

Comments
 (0)