diff --git a/_nginx/install_site/entrypoint.sh b/_nginx/install_site/entrypoint.sh index 0a58ed8..16a9ab0 100755 --- a/_nginx/install_site/entrypoint.sh +++ b/_nginx/install_site/entrypoint.sh @@ -1,21 +1,15 @@ #!/bin/bash -e -CERTBOTCMD=( +for URL in $BASE_URL $OTHER_URLS; do certbot certonly -n - --webroot - -w /var/www/certbot/ - --agree-tos - --no-eff-email - -m "$EMAIL" - -d "$BASE_URL" -) - -for URL in $OTHER_URLS; do - CERTBOTCMD+=(-d "$URL") + --webroot + -w /var/www/certbot/ + --agree-tos + --no-eff-email + -m "$EMAIL" + -d "$URL" done -"${CERTBOTCMD[@]}" - for f in *; do envsubst "$(env | xargs printf '$%s ')" < "$f" > "/sites/$f" done