Minor bugfix.

This commit is contained in:
2021-09-08 05:48:28 +00:00
parent 89b26b9027
commit 3743865892

View File

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