Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: bound certbot execution - #22

Merged
boGSer98 merged 1 commit into
fix/initialize-odoo-databasefrom
fix/bound-certbot-execution
Jun 4, 2026
Merged

boGSer98 merged 1 commit into
fix/initialize-odoo-databasefrom
fix/bound-certbot-execution

Conversation

@boGSer98

@boGSer98 boGSer98 commented Jun 3, 2026

Copy link
Copy Markdown
Owner

Summary

  • routes the non-interactive Certbot invocation through run_with_timeout
  • quotes the configured website name and admin email in the Certbot command
  • documents that SSL setup now fails clearly if certificate issuance hangs beyond COMMAND_TIMEOUT_SECONDS

Dependency

Stacked on PR #21 / branch fix/initialize-odoo-database to keep the hardening series reviewable one slice at a time.

Test Plan

  • python3 -m unittest tests/test_installer_features.py -v
  • bash -n odoo_install.sh
  • scripts/validate.sh
  • git diff --check

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๐Ÿ’ก Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cb39f64c37

โ„น๏ธ 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".

Comment thread odoo_install.sh
run_with_timeout sudo snap install --classic certbot
apt_get install python3-certbot-nginx -y
sudo certbot --nginx -d $WEBSITE_NAME --noninteractive --agree-tos --email $ADMIN_EMAIL --redirect
run_with_timeout sudo certbot --nginx -d "$WEBSITE_NAME" --noninteractive --agree-tos --email "$ADMIN_EMAIL" --redirect

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Stop after Certbot timeouts

For SSL-enabled installs where Certbot hangs past COMMAND_TIMEOUT_SECONDS, timeout --help reports that it exits with status 124 after killing the command, but this script does not enable set -e or check the return value here. That means the new bounded Certbot path can time out and still continue to reload nginx and print SSL/HTTPS is enabled!, leaving the install in a misleading partially configured state instead of failing clearly.

Useful? React with ๐Ÿ‘ย / ๐Ÿ‘Ž.

@boGSer98
boGSer98 merged commit 9f12aa6 into fix/initialize-odoo-database Jun 4, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant