File tree 1 file changed +4
-3
lines changed
examples/templates/fly-docker-image
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -284,10 +284,11 @@ resource "coder_agent" "main" {
284
284
code-server --auth none >/tmp/code-server.log 2>&1 &
285
285
# Set the hostname to the workspace name
286
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
287
288
# Install the Fly CLI and add it to the PATH
288
289
curl -L https://fly.io/install.sh | sh
289
- echo "export PATH=$PATH:/home/coder/.fly/bin" >> ~ /.bashrc
290
- source ~ /.bashrc
290
+ echo "export PATH=$PATH:/home/coder/.fly/bin" >> /home/coder /.bashrc
291
+ source /home/coder /.bashrc
291
292
EOT
292
293
293
294
metadata {
@@ -320,7 +321,7 @@ resource "coder_agent" "main" {
320
321
script = <<- EOT
321
322
#!/bin/bash
322
323
set -e
323
- df /home/coder | awk '$NF=="/" {printf "%s", $5}'
324
+ df | awk '$NF=="/home/coder" {printf "%s", $5}'
324
325
EOT
325
326
}
326
327
}
You can’t perform that action at this time.
0 commit comments