-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: certbot renew #665
feat: certbot renew #665
Conversation
@@ -905,3 +908,16 @@ pub fn run_bob(ctx: &ExecutionContext) -> Result<()> { | |||
|
|||
ctx.run_type().execute(bob).args(["update", "--all"]).status_checked() | |||
} | |||
|
|||
pub fn run_certbot(ctx: &ExecutionContext) -> Result<()> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It simply executes sudo certbot renew
:
$ ./target/debug/topgrade --only certbot
── 10:27:23 - Sudo ─────────────────────────────────────────────────────────────
── 10:27:23 - Certbot ──────────────────────────────────────────────────────────
certbot // fake output
── 10:27:23 - Summary ──────────────────────────────────────────────────────────
Certbot: OK
$ ./target/debug/topgrade --only certbot --dry-run
── 10:27:41 - Sudo ─────────────────────────────────────────────────────────────
Dry running: /usr/bin/sudo -v
── 10:27:41 - Certbot ──────────────────────────────────────────────────────────
Dry running: /usr/bin/sudo /home/steve/.local/bin/certbot renew
── 10:27:41 - Summary ──────────────────────────────────────────────────────────
Certbot: OK
Right. Since |
I tested the branch
looks good so far, now a test with a failing certbot:
So, from my side the test was successful. |
Standards checklist:
CONTRIBUTING.md
cargo build
)cargo fmt
)cargo clippy
)cargo test
)For new steps
Optional: Topgrade skips this step where needed
Optional: The
--dry-run
option works with this stepOptional: The
--yes
option works with this step if it is supported bythe underlying command
The
certbot
command does not seem to support this feature, right @bw1faeh0?If you developed a feature or a bug fix for someone else and you do not have the
means to test it, please tag this person here.