#!/bin/sh
set -e

docker pull quay.io/letsencrypt/letsencrypt:latest
docker rm -f letsencrypt || true

for DOMAIN in pr0.wibbly-wobbly.de app.pr0gramm.com ; do
  docker run --rm --name letsencrypt \
    -v "/data/nginx/static:/webroot" \
    -v "/etc/letsencrypt:/etc/letsencrypt" \
    -v "/var/lib/letsencrypt:/var/lib/letsencrypt" \
    quay.io/letsencrypt/letsencrypt:latest \
      auth -d $DOMAIN \
      --webroot --webroot-path /webroot \
      -m mopsalarm.pr0gramm@gmx.de \
      --renew-by-default --agree-tos
done

echo "sending SIGUSR1 to nginx"
killall -SIGUSR1 nginx

#!/bin/sh
set -e

docker pull quay.io/letsencrypt/letsencrypt:latest
docker rm -f letsencrypt || true

for DOMAIN in pr0.wibbly-wobbly.de app.pr0gramm.com ; do
  docker run --rm --name letsencrypt \
    -v "/data/nginx/static:/webroot" \
    -v "/etc/letsencrypt:/etc/letsencrypt" \
    -v "/var/lib/letsencrypt:/var/lib/letsencrypt" \
    quay.io/letsencrypt/letsencrypt:latest \
      auth -d $DOMAIN \
      --webroot --webroot-path /webroot \
      -m mopsalarm.pr0gramm@gmx.de \
      --renew-by-default --agree-tos
done

echo "reloading nginx"
docker exec nginx /etc/init.d/nginx reload

Use /etc/init.d/nginx reload after ssl update
Use /etc/init.d/nginx reload after ssl update
