Fix cerbot aws issue + update certbot (#864)

* Fix cerbot aws issue + update certbot

* Ignore lint

* fix lint
This commit is contained in:
Pascal Vizeli
2019-12-04 13:10:25 +01:00
committed by Franck Nijhof
parent d031079ce0
commit 50c295eee7
4 changed files with 17 additions and 2 deletions

View File

@@ -1,6 +1,12 @@
# Changelog # Changelog
## 4.3
- Update cerbot to 1.0.0
- Fix issue with DNS provider AWS
## 4.2 ## 4.2
- Bugfix default empty dns setting - Bugfix default empty dns setting
## 4.1 ## 4.1

View File

@@ -26,6 +26,6 @@ RUN apk add --no-cache --update \
&& apk del .build-dependencies && apk del .build-dependencies
# Copy data # Copy data
COPY run.sh / COPY data/run.sh /
CMD [ "/run.sh" ] CMD [ "/run.sh" ]

View File

@@ -7,6 +7,6 @@
"aarch64": "homeassistant/aarch64-base-python:3.7-alpine3.10" "aarch64": "homeassistant/aarch64-base-python:3.7-alpine3.10"
}, },
"args": { "args": {
"CERTBOT_VERSION": "0.38.0" "CERTBOT_VERSION": "1.0.0"
} }
} }

View File

@@ -46,6 +46,15 @@ echo -e "dns_cloudflare_email = $(bashio::config 'dns.cloudflare_email')\n" \
"dns_sakuracloud_api_secret = $(bashio::config 'dns.sakuracloud_api_secret')" > /data/dnsapikey "dns_sakuracloud_api_secret = $(bashio::config 'dns.sakuracloud_api_secret')" > /data/dnsapikey
chmod 600 /data/dnsapikey chmod 600 /data/dnsapikey
# AWS workaround
if bashio::config.exists 'dns.aws_access_key_id' && bashio::config.exists 'dns.aws_secret_access_key'; then
AWS_ACCESS_KEY_ID="$(bashio::config 'dns.aws_access_key_id')"
AWS_SECRET_ACCESS_KEY="$(bashio::config 'dns.aws_secret_access_key')"
export AWS_ACCESS_KEY_ID
export AWS_SECRET_ACCESS_KEY
fi
# Generate new certs # Generate new certs
if [ ! -d "$CERT_DIR/live" ]; then if [ ! -d "$CERT_DIR/live" ]; then
DOMAIN_ARR=() DOMAIN_ARR=()