Skip to content

Commit 6c77636

Browse files
committed
Use correct type when looping through list of domain args
1 parent 8b05387 commit 6c77636

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cookbooks/boxcutter_acme/templates/certbot_renew.sh.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ obtain_certificate() {
2020
else
2121
echo "Creating a new certificate for domains: ${DOMAINS[*]}"
2222
DOMAIN_ARGS=()
23-
for DOMAIN in ${DOMAINS}; do
23+
for DOMAIN in ${DOMAINS[@]}; do
2424
DOMAIN_ARGS+=("-d $DOMAIN")
2525
done
2626

cookbooks/boxcutter_acme/templates/lego_renew.sh.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ list_certificates() {
3939
}
4040

4141
DOMAIN_ARGS=()
42-
for DOMAIN in ${DOMAINS}; do
42+
for DOMAIN in ${DOMAINS[@]}; do
4343
echo "${DOMAIN}"
4444
DOMAIN_ARGS+=("--domains $DOMAIN")
4545
done

0 commit comments

Comments
 (0)