mirror of
https://github.com/fernwerker/ownDynDNS.git
synced 2025-07-10 06:05:13 +02:00
fix wildcard handling
This commit is contained in:
parent
56fbf4cf72
commit
42245eaa3e
1 changed files with 4 additions and 0 deletions
|
@ -5,6 +5,10 @@ apk --no-cache add curl
|
|||
|
||||
ACME_PREFIX="_acme-challenge"
|
||||
|
||||
# check if wildcard cert is requested, as that needs to be stripped
|
||||
if [[ "${DDNS_HOST}" == '*.'* ]]; then DDNS_HOST=${DDNS_HOST#\*\.}; fi
|
||||
|
||||
# prepend acme prefix to host part
|
||||
if [ -z "${DDNS_HOST}" ]; then DDNS_HOST=${ACME_PREFIX}; else DDNS_HOST=${ACME_PREFIX}.${DDNS_HOST}; fi
|
||||
|
||||
PAYLOAD="force=true&user=${DDNS_USER}&password=${DDNS_PASS}&txt=${CERTBOT_VALIDATION}&domain=${DDNS_DOMAIN}&host=${DDNS_HOST}&create=true"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue