Skip to content

Commit 3662464

Browse files
committed
fix: export CODER_AGENT_TOKEN in scaleway template
The agent token was being set as a shell variable but not exported to the environment, causing the coder agent to fail with "CODER_AGENT_TOKEN must be set" error during cloud-init execution.
1 parent 041e5ba commit 3662464

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/bin/bash
2-
sudo -u '${linux_user}' sh -c 'CODER_AGENT_TOKEN="${coder_agent_token}" ${init_script}'
2+
sudo -u '${linux_user}' sh -c 'export CODER_AGENT_TOKEN="${coder_agent_token}"; ${init_script}'

0 commit comments

Comments
 (0)