Adds renew hook (#845)

* chore: update golangci-lint.
* feat: support renew-hook.
This commit is contained in:
Ludovic Fernandez 2019-04-02 18:38:23 +02:00 committed by GitHub
parent 55572c2606
commit 5d557fdc6d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 48 additions and 15 deletions

View file

@ -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