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
|
||||
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
|
||||
|
Reference in New Issue
Block a user