Minor changes

This commit is contained in:
2021-09-07 12:43:14 +02:00
parent a74f448163
commit 7732f9916d

View File

@@ -24,8 +24,13 @@ if [ -n "$LETSENCRYPT_FILE" ] ; then
else
for i in `ls` ; do
DOMAIN=$(jq -r .DOMAIN $i) ;
start_letsencrypt;
touch /acme.sh/$DOMAIN/new_certificate
if [[ -f /acme.sh/$DOMAIN/key.pem && -f /acme.sh/$DOMAIN/fullchain.pem && -f /acme.sh/$DOMAIN/cert.pem ]] ; then
start_letsencrypt ;
touch /acme.sh/$DOMAIN/renew_certificate;
else
start_letsencrypt;
touch /acme.sh/$DOMAIN/new_certificate;
fi
done ;
fi