From 5d6c6dea573fdc70e4442bccf7de4f751c111aab Mon Sep 17 00:00:00 2001 From: Timmo <28114703+timmo001@users.noreply.github.com> Date: Sun, 19 Aug 2018 13:21:08 +0100 Subject: [PATCH] :fire: fix ssl --- home-panel/rootfs/etc/cont-init.d/30-nginx.sh | 2 +- home-panel/rootfs/etc/cont-init.d/40-api.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/home-panel/rootfs/etc/cont-init.d/30-nginx.sh b/home-panel/rootfs/etc/cont-init.d/30-nginx.sh index 4cd2be9..5932bdb 100644 --- a/home-panel/rootfs/etc/cont-init.d/30-nginx.sh +++ b/home-panel/rootfs/etc/cont-init.d/30-nginx.sh @@ -9,7 +9,7 @@ source /usr/lib/hassio-addons/base.sh certfile="/ssl/$(hass.config.get 'certfile')" keyfile="/ssl/$(hass.config.get 'keyfile')" -if [ "$(hass.config.get 'ssl')" ]; then +if hass.config.true 'ssl'; then hass.log.info "Copy enabled SSL nginx config" echo "server { listen 8234 ssl http2 default_server; diff --git a/home-panel/rootfs/etc/cont-init.d/40-api.sh b/home-panel/rootfs/etc/cont-init.d/40-api.sh index 39832c5..3fe9061 100644 --- a/home-panel/rootfs/etc/cont-init.d/40-api.sh +++ b/home-panel/rootfs/etc/cont-init.d/40-api.sh @@ -11,7 +11,7 @@ echo "REACT_APP_API_URL = $(hass.config.get 'api_url')" > /usr/src/app/.env.loca certfile="/ssl/$(hass.config.get 'certfile')" keyfile="/ssl/$(hass.config.get 'keyfile')" -if [ "$(hass.config.get 'ssl')" ]; then +if hass.config.true 'ssl'; then hass.log.info "Copy SSL certs to api directory" cp "$certfile" /usr/src/api/fullchain.pem cp "$keyfile" /usr/src/api/privkey.pem