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