Adds renew hook (#845)
* chore: update golangci-lint. * feat: support renew-hook.
This commit is contained in:
parent
55572c2606
commit
5d557fdc6d
6 changed files with 48 additions and 15 deletions
|
@ -30,6 +30,14 @@ lego --email="foo@bar.com" --domains="example.com" --http renew
|
|||
lego --email="foo@bar.com" --domains="example.com" --http renew --days 45
|
||||
```
|
||||
|
||||
### To renew the certificate (and hook)
|
||||
|
||||
The hook is executed only when the certificates are effectively renewed.
|
||||
|
||||
```bash
|
||||
lego --email="foo@bar.com" --domains="example.com" --http renew --renew-hook="./myscript.sh"
|
||||
```
|
||||
|
||||
### Obtain a certificate using the DNS challenge
|
||||
|
||||
```bash
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue