diff --git a/start.letsencrypt.sh b/start.letsencrypt.sh index 3bce929..b1b55c4 100755 --- a/start.letsencrypt.sh +++ b/start.letsencrypt.sh @@ -28,7 +28,7 @@ else DOMAIN=$(jq -r .DOMAIN $i) ; if [[ -f /acme.sh/$DOMAIN/key.pem && -f /acme.sh/$DOMAIN/fullchain.pem && -f /acme.sh/$DOMAIN/cert.pem ]] ; then start_letsencrypt ; - if [ find /acme.sh/$DOMAIN/ -type f -newermt "$(date '+%Y-%m-%d %H:%M:%S' -d '1 hour ago')" ]; then + if [ find /acme.sh/$DOMAIN/ -type f -mmin +60 ]; then touch /acme.sh/$DOMAIN/renew_certificate; fi else