Enhance start.letsencrypt.sh to log successful certificate creation and generate JSON output
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -73,6 +73,12 @@ start_letsencrypt() {
|
|||||||
if [[ "$(echo $?)" != "1" ]]; then
|
if [[ "$(echo $?)" != "1" ]]; then
|
||||||
sleep $TIMEOUT
|
sleep $TIMEOUT
|
||||||
echo "Restarting number is only: "$retries" so try again"
|
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
|
fi
|
||||||
else
|
else
|
||||||
sleep $TIMEOUT
|
sleep $TIMEOUT
|
||||||
|
Reference in New Issue
Block a user