Skip to content
This repository has been archived by the owner on Apr 29, 2022. It is now read-only.

Commit

Permalink
Fix renew certs script
Browse files Browse the repository at this point in the history
  • Loading branch information
David Fernandez committed Jul 8, 2017
1 parent 3abfdec commit d0e298a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ansible/roles/services/apache/templates/renew_certs.sh.j2
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/usr/bin/env bash

service stop {{ instance_name }}
echo "Stopping Apache"
systemctl stop {{ instance_name }}
sleep 5
echo "Attepmting to renew certificates"
docker run -i --rm --name certbot -p 443:443 -v /opt/dockerapps/{{ instance_name }}/letsencrypt:/etc/letsencrypt/ {{ certbot_image_name }}:{{ certbot_image_version }} renew
sleep 5
service start {{ instance_name }}
echo "Starting Apache"
systemctl start {{ instance_name }}

0 comments on commit d0e298a

Please sign in to comment.