File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -249,7 +249,7 @@ resource "coder_agent" "dev" {
249
249
key = " swap_usage_host"
250
250
order = 4
251
251
script = << EOT
252
- #!/bin/bash
252
+ #!/usr/ bin/env bash
253
253
echo "$(free -b | awk '/^Swap/ { printf("%.1f/%.1f", $3/1024.0/1024.0/1024.0, $2/1024.0/1024.0/1024.0) }') GiB"
254
254
EOT
255
255
interval = 10
@@ -262,7 +262,7 @@ resource "coder_agent" "dev" {
262
262
order = 5
263
263
# get load avg scaled by number of cores
264
264
script = << EOT
265
- #!/bin/bash
265
+ #!/usr/ bin/env bash
266
266
echo "`cat /proc/loadavg | awk '{ print $1 }'` `nproc`" | awk '{ printf "%0.2f", $1/$2 }'
267
267
EOT
268
268
interval = 60
@@ -283,14 +283,15 @@ resource "coder_agent" "dev" {
283
283
key = " word"
284
284
order = 7
285
285
script = << EOT
286
- #!/bin/bash
286
+ #!/usr/ bin/env bash
287
287
curl -o - --silent https://www.merriam-webster.com/word-of-the-day 2>&1 | awk ' $0 ~ "Word of the Day: [A-z]+" { print $5; exit }'
288
288
EOT
289
289
interval = 86400
290
290
timeout = 5
291
291
}
292
292
293
293
startup_script = <<- EOT
294
+ #!/usr/bin/env bash
294
295
set -eux -o pipefail
295
296
296
297
# Allow synchronization between scripts.
You can’t perform that action at this time.
0 commit comments