Last active
January 6, 2018 12:14
-
-
Save atomAltera/ef957ac42b09232cbfd3a2c233aa0e9e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd $1 | |
docker-compose stop nginx | |
docker-compose run --rm -p 443:443 nginx certbot renew --post-hook "mv /etc/letsencrypt/keys/0001_key-certbot.pem /etc/letsencrypt/keys/0000_key-certbot.pem" | |
docker-compose start nginx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment