fix(install_site): 1 cert per URL
This commit is contained in:
parent
d49c066585
commit
ca151023d4
@ -1,21 +1,15 @@
|
|||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
|
|
||||||
CERTBOTCMD=(
|
for URL in $BASE_URL $OTHER_URLS; do
|
||||||
certbot certonly -n
|
certbot certonly -n
|
||||||
--webroot
|
--webroot
|
||||||
-w /var/www/certbot/
|
-w /var/www/certbot/
|
||||||
--agree-tos
|
--agree-tos
|
||||||
--no-eff-email
|
--no-eff-email
|
||||||
-m "$EMAIL"
|
-m "$EMAIL"
|
||||||
-d "$BASE_URL"
|
-d "$URL"
|
||||||
)
|
|
||||||
|
|
||||||
for URL in $OTHER_URLS; do
|
|
||||||
CERTBOTCMD+=(-d "$URL")
|
|
||||||
done
|
done
|
||||||
|
|
||||||
"${CERTBOTCMD[@]}"
|
|
||||||
|
|
||||||
for f in *; do
|
for f in *; do
|
||||||
envsubst "$(env | xargs printf '$%s ')" < "$f" > "/sites/$f"
|
envsubst "$(env | xargs printf '$%s ')" < "$f" > "/sites/$f"
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user