Enhance start.letsencrypt.sh to log successful certificate creation and generate JSON output
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
gyurix
2025-03-30 09:54:02 +02:00
parent 6d219eaa6c
commit 5d2a782201

View File

@@ -73,6 +73,12 @@ start_letsencrypt() {
if [[ "$(echo $?)" != "1" ]]; then
sleep $TIMEOUT
echo "Restarting number is only: "$retries" so try again"
else
echo "Created or renew successfuly the certificate for $DOMAIN"
echo "Creating log json from letsencrypt output"
STATUS=success
create_json $STATUS
break
fi
else
sleep $TIMEOUT