Minor bugfix.
This commit is contained in:
@@ -27,7 +27,7 @@ else
|
|||||||
if [[ -f "/acme.sh/$DOMAIN/key.pem" && -f "/acme.sh/$DOMAIN/fullchain.pem" && -f "/acme.sh/$DOMAIN/cert.pem" ]] ; then
|
if [[ -f "/acme.sh/$DOMAIN/key.pem" && -f "/acme.sh/$DOMAIN/fullchain.pem" && -f "/acme.sh/$DOMAIN/cert.pem" ]] ; then
|
||||||
echo "Found certificate files";
|
echo "Found certificate files";
|
||||||
start_letsencrypt;
|
start_letsencrypt;
|
||||||
if [ find /acme.sh/$DOMAIN/ -type f -mmin +60 ]; then
|
if [[ -n "$(find /acme.sh/$DOMAIN/ -type f -mmin +60)" ]]; then
|
||||||
touch /acme.sh/$DOMAIN/renew_certificate;
|
touch /acme.sh/$DOMAIN/renew_certificate;
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user