Make let's encrypt more robust (#95)

Robust lesencrypt
This commit is contained in:
Pascal Vizeli
2017-05-24 11:26:50 +02:00
committed by GitHub
parent 5209f7a621
commit 225a5566be
2 changed files with 4 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "Let's Encrypt",
"version": "0.8",
"version": "0.9",
"slug": "letsencrypt",
"description": "Manage Let's Encrypt certificate",
"url": "https://home-assistant.io/addons/lets_encrypt/",

View File

@@ -10,8 +10,10 @@ DOMAINS=$(jq --raw-output ".domains[]" $CONFIG_PATH)
KEYFILE=$(jq --raw-output ".keyfile" $CONFIG_PATH)
CERTFILE=$(jq --raw-output ".certfile" $CONFIG_PATH)
mkdir -p "$CERT_DIR"
# Generate new certs
if [ ! -d "$CERT_DIR" ]; then
if [ ! -d "$CERT_DIR/live" ]; then
DOMAIN_ARR=()
for line in $DOMAINS; do
DOMAIN_ARR+=(-d "$line")