From 3743865892d47141640025195413c6fb35a79355 Mon Sep 17 00:00:00 2001 From: gyurix Date: Wed, 8 Sep 2021 05:48:28 +0000 Subject: [PATCH] Minor bugfix. --- start.letsencrypt.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/start.letsencrypt.sh b/start.letsencrypt.sh index 13c9e58..e7b8642 100755 --- a/start.letsencrypt.sh +++ b/start.letsencrypt.sh @@ -27,8 +27,8 @@ else if [[ -f "/acme.sh/$DOMAIN/key.pem" && -f "/acme.sh/$DOMAIN/fullchain.pem" && -f "/acme.sh/$DOMAIN/cert.pem" ]] ; then echo "Found certificate files"; start_letsencrypt; - if [ find /acme.sh/$DOMAIN/ -type f -mmin +60 ]; then - touch /acme.sh/$DOMAIN/renew_certificate; + if [[ -n "$(find /acme.sh/$DOMAIN/ -type f -mmin +60)" ]]; then + touch /acme.sh/$DOMAIN/renew_certificate; fi else start_letsencrypt;