19 lines
466 B
Bash
Executable File
19 lines
466 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
certbot certonly -n \
|
|
--webroot \
|
|
-w /var/www/certbot/ \
|
|
--agree-tos \
|
|
--no-eff-email \
|
|
-m "$EMAIL" \
|
|
-d "$BASE_URL"
|
|
|
|
for f in *; do
|
|
envsubst "$(bash -c 'compgen -v' | xargs printf '$%s ')" \
|
|
< "$f" \
|
|
> "/sites/$f"
|
|
done
|
|
|
|
printf "POST /containers/nginx/kill?signal=SIGHUP HTTP/1.0\r\n\n" \
|
|
| nc -U /var/run/docker.sock
|