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 23:04:03 +03:00 committed by GitHub
parent ad0c0df104
commit 48f9521fcb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

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
}