diff --git a/newt/config.yaml b/newt/config.yaml index cd68657..cfc0910 100755 --- a/newt/config.yaml +++ b/newt/config.yaml @@ -19,14 +19,14 @@ options: secret: null endpoint: null dns: "" - log-level: "INFO" - tls-client-cert: "" + log_level: "INFO" + tls_client_cert: "" docker: false schema: id: str secret: str endpoint: str dns: str? - log-level: list(DEBUG|INFO|NOTICE|WARN|ERROR) - tls-client-cert: str? - docker: bool \ No newline at end of file + log_level: list(DEBUG|INFO|NOTICE|WARN|ERROR)? + tls_client_cert: str? + docker: bool? \ No newline at end of file diff --git a/newt/run.sh b/newt/run.sh index bbd0d22..f046cab 100755 --- a/newt/run.sh +++ b/newt/run.sh @@ -9,7 +9,7 @@ ARGS=( "--id" "$(bashio::config 'id')" "--secret" "$(bashio::config 'secret')" "--endpoint" "$(bashio::config 'endpoint')" - "--log-level" "$(bashio::config 'log-level')" + "--log-level" "$(bashio::config 'log_level')" ) # Add DNS if configured @@ -17,8 +17,8 @@ if bashio::config.has_value 'dns' && [ -n "$(bashio::config 'dns')" ]; then ARGS+=("--dns" "$(bashio::config 'dns')") fi -if bashio::config.has_value 'tls-client-cert' && [ -n "$(bashio::config 'tls-client-cert')" ]; then - ARGS+=("--tls-client-cert" "$(bashio::config 'tls-client-cert')") +if bashio::config.has_value 'tls_client_cert' && [ -n "$(bashio::config 'tls_client_cert')" ]; then + ARGS+=("--tls-client-cert" "$(bashio::config 'tls_client_cert')") fi if bashio::config.has_value 'docker' && [ "$(bashio::config 'docker')" = "true" ]; then