mirror of
https://github.com/coder/coder.git
synced 2026-09-21 20:51:01 +08:00
fix: restore /tmp/.coder-startup-script.done in dogfood template (#21419)
This commit is contained in:
@@ -600,7 +600,12 @@ resource "coder_agent" "dev" {
|
||||
#!/usr/bin/env bash
|
||||
set -eux -o pipefail
|
||||
# Allow other scripts to wait for agent startup.
|
||||
trap 'coder exp sync complete agent-startup' EXIT
|
||||
function cleanup() {
|
||||
coder exp sync complete agent-startup
|
||||
# Some folks will also use this for their personalize scripts.
|
||||
touch /tmp/.coder-startup-script.done
|
||||
}
|
||||
trap cleanup EXIT
|
||||
coder exp sync start agent-startup
|
||||
|
||||
# Authenticate GitHub CLI
|
||||
|
||||
Reference in New Issue
Block a user