We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentec5ef51 commit63a9e34Copy full SHA for 63a9e34
examples/templates/fly-docker-image/main.tf
@@ -284,10 +284,11 @@ resource "coder_agent" "main" {
284
code-server --auth none >/tmp/code-server.log 2>&1 &
285
# Set the hostname to the workspace name
286
sudo hostname -b "${data.coder_workspace.me.name}-fly"
287
+ echo "127.0.0.1${data.coder_workspace.me.name}-fly" | sudo tee -a /etc/hosts
288
# Install the Fly CLI and add it to the PATH
289
curl -L https://fly.io/install.sh | sh
- echo "export PATH=$PATH:/home/coder/.fly/bin" >>~/.bashrc
290
- source~/.bashrc
+ echo "export PATH=$PATH:/home/coder/.fly/bin" >>/home/coder/.bashrc
291
+ source/home/coder/.bashrc
292
EOT
293
294
metadata {
@@ -320,7 +321,7 @@ resource "coder_agent" "main" {
320
321
script=<<-EOT
322
#!/bin/bash
323
set -e
- df/home/coder| awk '$NF=="/"{printf "%s", $5}'
324
+ df | awk '$NF=="/home/coder"{printf "%s", $5}'
325
326
}
327