Deploy gateway sources from GitHub archive - #60
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8dfbbf8692
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| case '${DEPLOY_PATH}' in | ||
| ''|'/'|'/home'|'/opt') |
There was a problem hiding this comment.
Normalize deploy path before deleting it
When DEPLOY_PATH is misconfigured with an equivalent form such as /opt/ or /home/, it bypasses this exact-match guard and the next line runs sudo rm -rf on that directory, deleting the VM's /opt or /home contents before recreating the deploy directory. Since this change adds the destructive removal step, normalize the path or reject slash/dot variants before allowing the delete.
Useful? React with 👍 / 👎.
Summary
Verification
Runtime config