forked from TrueCloudLab/lego
Fix --days parameter for renewal
This commit is contained in:
parent
365bbf3166
commit
0c8bd2962e
2 changed files with 6 additions and 1 deletions
|
@ -1,5 +1,10 @@
|
|||
# Changelog
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Fixed:
|
||||
- CLI: Fix logic using the --days parameter
|
||||
|
||||
## [0.1.1] - 2015-12-18
|
||||
|
||||
### Added:
|
||||
|
|
|
@ -197,7 +197,7 @@ func renew(c *cli.Context) {
|
|||
logger().Printf("Could not get Certification expiration for domain %s", domain)
|
||||
}
|
||||
|
||||
if int(expTime.Sub(time.Now()).Hours() / 24.0) <= c.Int("days") {
|
||||
if int(expTime.Sub(time.Now()).Hours() / 24.0) > c.Int("days") {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue