Minor changes
This commit is contained in:
@@ -28,7 +28,7 @@ else
|
|||||||
DOMAIN=$(jq -r .DOMAIN $i) ;
|
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
|
if [[ -f /acme.sh/$DOMAIN/key.pem && -f /acme.sh/$DOMAIN/fullchain.pem && -f /acme.sh/$DOMAIN/cert.pem ]] ; then
|
||||||
start_letsencrypt ;
|
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;
|
touch /acme.sh/$DOMAIN/renew_certificate;
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user