fix(install_site): 1 cert per URL
This commit is contained in:
parent
d49c066585
commit
ca151023d4
@ -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")
|
||||
-d "$URL"
|
||||
done
|
||||
|
||||
"${CERTBOTCMD[@]}"
|
||||
|
||||
for f in *; do
|
||||
envsubst "$(env | xargs printf '$%s ')" < "$f" > "/sites/$f"
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user