Skip to content

Commit f26d5d5

Browse files
pRizzcursoragent
andcommitted
fix(cfn): correct rustup PATH and uid expansion
Fix PATH export in profile script and use proper uid/gid variables when chowning host mount directories. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 177b4e4 commit f26d5d5

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

infra/aws/cloudformation/opencode-cloud-quick.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -688,10 +688,10 @@ Resources:
688688
689689
log "opencode-cloud setup: configure rustup PATH for ubuntu"
690690
cat <<'EOF' > /etc/profile.d/opencode-cloud.sh
691-
export CARGO_HOME="$$HOME/.cargo"
692-
export PATH="$$CARGO_HOME/bin:$$PATH"
693-
if [ -f "$$CARGO_HOME/env" ]; then
694-
. "$$CARGO_HOME/env"
691+
export CARGO_HOME="$HOME/.cargo"
692+
export PATH="$PATH:$CARGO_HOME/bin"
693+
if [ -f "$CARGO_HOME/env" ]; then
694+
. "$CARGO_HOME/env"
695695
fi
696696
EOF
697697
chmod 0644 /etc/profile.d/opencode-cloud.sh
@@ -786,7 +786,7 @@ Resources:
786786
mkdir -p "$data_dir" "$state_dir" "$cache_dir" "$config_dir" "$workspace_dir"
787787
opencode_uid="$(docker run --rm --entrypoint id "$OPENCODE_IMAGE" -u opencode)"
788788
opencode_gid="$(docker run --rm --entrypoint id "$OPENCODE_IMAGE" -g opencode)"
789-
chown -R "$$opencode_uid:$$opencode_gid" \
789+
chown -R "$opencode_uid:$opencode_gid" \
790790
"$data_dir" \
791791
"$state_dir" \
792792
"$cache_dir" \

0 commit comments

Comments
 (0)