mirror of
https://github.com/go-acme/lego.git
synced 2024-12-23 01:07:23 +02:00
Fix --days parameter for renewal
This commit is contained in:
parent
365bbf3166
commit
0c8bd2962e
@ -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 New Issue
Block a user