fix: log when domains are being ignored
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
9c1ac56386
commit
64b5f71b58
1 changed files with 4 additions and 1 deletions
|
@ -94,7 +94,10 @@ case $1 in
|
|||
test -d "/etc/letsencrypt/live/${domain}" && continue
|
||||
|
||||
# Ignore non local domains
|
||||
nslookup "${domain}" 8.8.8.8 | grep -qE "^(${SUTTY_ADDRESSES// /|})$" || continue
|
||||
if ! nslookup "${domain}" 8.8.8.8 | grep -qE "^(${SUTTY_ADDRESSES// /|})$" ; then
|
||||
echo "${domain} is not configured to any Sutty node or DNS records are still cached, ignoring for now"
|
||||
continue
|
||||
fi
|
||||
|
||||
# Get the certificate for the domain, the webserver will need
|
||||
# access to this directory
|
||||
|
|
Loading…
Reference in a new issue