From 172cd13b247f9a2fc4b82fe83254f569027d55c8 Mon Sep 17 00:00:00 2001 From: Cian Johnston Date: Mon, 5 Jan 2026 16:12:35 +0000 Subject: [PATCH] fix: restore /tmp/.coder-startup-script.done in dogfood template (#21419) --- dogfood/coder/main.tf | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dogfood/coder/main.tf b/dogfood/coder/main.tf index e2cec0b943..2355357459 100644 --- a/dogfood/coder/main.tf +++ b/dogfood/coder/main.tf @@ -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