File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
custom-domain/dstack-ingress/scripts Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -201,7 +201,12 @@ set_caa_record() {
201201 return
202202 fi
203203 local ACCOUNT_URI
204- ACCOUNT_URI=$( jq -j ' .uri' /etc/letsencrypt/accounts/acme-v02.api.letsencrypt.org/directory/* /regr.json)
204+ find /etc/letsencrypt/accounts -name regr.json
205+ path=" /etc/letsencrypt/accounts/acme-v02.api.letsencrypt.org/directory/*/regr.json"
206+ if [ " $CERTBOT_STAGING " == " true" ]; then
207+ path=" ${path/ acme-v02/ acme-staging-v02} "
208+ fi
209+ ACCOUNT_URI=$( jq -j ' .uri' $path )
205210 echo " Adding CAA record for $domain , accounturi=$ACCOUNT_URI "
206211 dnsman.py set_caa \
207212 --domain " $domain " \
Original file line number Diff line number Diff line change 22
33set -e
44
5- ACME_ACCOUNT_FILE=$( ls /etc/letsencrypt/accounts/acme-v02.api.letsencrypt.org/directory/* /regr.json)
5+ path=" /etc/letsencrypt/accounts/acme-v02.api.letsencrypt.org/directory/*/regr.json"
6+ if [ " $CERTBOT_STAGING " == " true" ]; then
7+ path=" ${path/ acme-v02/ acme-staging-v02} "
8+ fi
9+ ACME_ACCOUNT_FILE=$( ls $path )
610
711mkdir -p /evidences
812cd /evidences || exit
You can’t perform that action at this time.
0 commit comments