Fix configurator SSL certificate path (#366)

This commit is contained in:
Gabriel Oliveira
2018-08-06 11:36:35 -03:00
committed by Pascal Vizeli
parent 07f7634e94
commit 3219d692f2
3 changed files with 7 additions and 4 deletions

View File

@@ -1,6 +1,9 @@
# Changelog
## 0.5
## 1.1
- Fixed ssl certificate path bug
## 1.0
- Added basic git stash functionality
- Added NOTIFY_SERVICE option
- Notifying if used passwords are insecure and when SESAME has been used

View File

@@ -1,6 +1,6 @@
{
"name": "Configurator",
"version": "1.0",
"version": "1.1",
"slug": "configurator",
"description": "Browser-based configuration file editor for Home Assistant.",
"url": "https://home-assistant.io/addons/configurator",

View File

@@ -23,8 +23,8 @@ export HC_VERIFY_HOSTNAME=$(jq --raw-output '.verify_hostname // empty' $CONFIG_
SSL=$(jq --raw-output '.ssl // false' $CONFIG_PATH)
if [ "$SSL" == "true" ]; then
export HC_SSL_CERTIFICATE=$(jq --raw-output '.certfile' $CONFIG_PATH)
export HC_SSL_KEY=$(jq --raw-output '.keyfile' $CONFIG_PATH)
export HC_SSL_CERTIFICATE=ssl/$(jq --raw-output '.certfile' $CONFIG_PATH)
export HC_SSL_KEY=ssl/$(jq --raw-output '.keyfile' $CONFIG_PATH)
fi
LOGLEVEL=$(jq --raw-output '.loglevel // empty' $CONFIG_PATH)