1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-02 08:32:50 -05:00

lets encrypt updates for sh scripts

This commit is contained in:
Kyle Spearrin
2017-08-21 11:47:42 -04:00
parent e90dc470b7
commit ecf3ce797e
4 changed files with 8 additions and 7 deletions

View File

@ -24,11 +24,11 @@ fi
docker --version
docker-compose --version
LETS_ENCRYPT_LIVE = "${outputDir}/letsencrypt/live"
if [ -d "$LETS_ENCRYPT_LIVE" ]
LETS_ENCRYPT_PATH = "${outputDir}/letsencrypt"
if [ -d "LETS_ENCRYPT_PATH" ]
then
docker run -it --rm --name certbot -p 443:443 -p 80:80 -v $OUTPUT_DIR/letsencrypt:/etc/letsencrypt/ certbot/certbot \
renew
renew --logs-dir /etc/letsencrypt/logs
fi
docker-compose -f $DOCKER_DIR/docker-compose.yml -f $DOCKER_DIR/docker-compose.$OS.yml down