Merge pull request #11 from JrCs/master

Print when domain renewals occur. Explicitly copy files to /app/ in Docker image
This commit is contained in:
David Parrish 2015-12-05 11:44:44 -05:00
commit 53c1d31e31
2 changed files with 4 additions and 2 deletions

View file

@ -4,7 +4,8 @@ MAINTAINER David Parrish <daveparrish@tutanota.com>
MAINTAINER Yves Blusseau <90z7oey02@sneakemail.com>
MAINTAINER Hadrien Mary <hadrien.mary@gmail.com>
COPY . /app/
# Install simp_le program
COPY /install_simp_le.sh /app/install_simp_le.sh
RUN chmod +rx /app/install_simp_le.sh && sync && /app/install_simp_le.sh && rm -f /app/install_simp_le.sh
COPY letsencrypt_service letsencrypt_service_data.tmpl nginx.tmpl Procfile update_certs update_nginx /app/

View file

@ -24,6 +24,7 @@ update_certs() {
mkdir -p /etc/nginx/certs/$domain
cd /etc/nginx/certs/$domain
echo "Creating/renewal $domain certificates..."
/usr/local/bin/simp_le \
-d "$domain" \
-f fullchain.pem -f key.pem \