mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-17 05:04:21 +01:00
Fix cerbot aws issue + update certbot (#864)
* Fix cerbot aws issue + update certbot * Ignore lint * fix lint
This commit is contained in:
committed by
Franck Nijhof
parent
d031079ce0
commit
50c295eee7
@@ -1,6 +1,12 @@
|
||||
# Changelog
|
||||
|
||||
## 4.3
|
||||
|
||||
- Update cerbot to 1.0.0
|
||||
- Fix issue with DNS provider AWS
|
||||
|
||||
## 4.2
|
||||
|
||||
- Bugfix default empty dns setting
|
||||
|
||||
## 4.1
|
||||
|
||||
@@ -26,6 +26,6 @@ RUN apk add --no-cache --update \
|
||||
&& apk del .build-dependencies
|
||||
|
||||
# Copy data
|
||||
COPY run.sh /
|
||||
COPY data/run.sh /
|
||||
|
||||
CMD [ "/run.sh" ]
|
||||
|
||||
@@ -7,6 +7,6 @@
|
||||
"aarch64": "homeassistant/aarch64-base-python:3.7-alpine3.10"
|
||||
},
|
||||
"args": {
|
||||
"CERTBOT_VERSION": "0.38.0"
|
||||
"CERTBOT_VERSION": "1.0.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
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
|
||||
if [ ! -d "$CERT_DIR/live" ]; then
|
||||
DOMAIN_ARR=()
|
||||
Reference in New Issue
Block a user