Skip to content

Commit

Permalink
Merge pull request #1506 from a-p-z/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Odianosen25 authored Jun 29, 2022
2 parents 42cf66c + 0f95883 commit 5c8490d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions conf/appdaemon.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ appdaemon:
type: hass
ha_url:
token:
cert_verify: True
http:
url:
admin:
Expand Down
5 changes: 5 additions & 0 deletions dockerStart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ if [[ -n "$MQTT_NAMESPACE" && -n "$MQTT_CLIENT_HOST" && -n "$MQTT_CLIENT_USER" &
sed -i "s/^ client_password:.*/ client_password: $(echo $MQTT_CLIENT_PASSWORD | sed -e 's/\\/\\\\/g; s/\//\\\//g; s/&/\\\&/g')/" $CONF/appdaemon.yaml
fi

# if ENV HA_CERT_VERIFY is set, change the value in appdaemon.yaml
if [ -n "$HA_CERT_VERIFY" ]; then
sed -i "s/^ cert_verify:.*/ cert_verify: $(echo $HA_CERT_VERIFY | sed -e 's/\\/\\\\/g; s/\//\\\//g; s/&/\\\&/g')/" $CONF/appdaemon.yaml
fi

# if ENV DASH_URL is set, change the value in appdaemon.yaml
if [ -n "$DASH_URL" ]; then
if grep -q "^ url" $CONF/appdaemon.yaml; then
Expand Down

0 comments on commit 5c8490d

Please sign in to comment.