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 5037f87a36.
This commit is contained in:
Muhammad Atif Ali
2023-03-27 20:04:03 +00:00
committed by GitHub
parent ad0c0df104
commit 48f9521fcb
+2 -1
View File
@@ -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
}