corrected some path and values
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
DOMAIN=$DOMAIN
|
DOMAIN=$HOMEASSISTANT_DOMAIN
|
||||||
SELECTOR=$HOMEASSISTANT
|
SELECTOR=$HOMEASSISTANT
|
||||||
HOMEASSISTANT_IP=$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d '/' -f1)
|
HOMEASSISTANT_IP=$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d '/' -f1)
|
||||||
HOST_FILE=/etc/system/data/dns/hosts.local;
|
HOST_FILE=/etc/system/data/dns/hosts.local;
|
||||||
@@ -17,7 +17,7 @@ fi
|
|||||||
|
|
||||||
mkdir -p /etc/user/data/homeassistant/config
|
mkdir -p /etc/user/data/homeassistant/config
|
||||||
|
|
||||||
if [ ! -f /etc/user/data/homeassistant/config/config.yaml ]; then
|
if [ ! -f /etc/user/data/homeassistant/config/configuration.yaml ]; then
|
||||||
|
|
||||||
echo '# Loads default set of integrations. Do not remove.
|
echo '# Loads default set of integrations. Do not remove.
|
||||||
default_config:
|
default_config:
|
||||||
@@ -35,7 +35,7 @@ frontend:
|
|||||||
automation: !include automations.yaml
|
automation: !include automations.yaml
|
||||||
script: !include scripts.yaml
|
script: !include scripts.yaml
|
||||||
scene: !include scenes.yaml
|
scene: !include scenes.yaml
|
||||||
' >/etc/user/data/homeassistant/config/config.yaml
|
' >/etc/user/data/homeassistant/config/configuration.yaml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
yq eval .'.homeassistant.external_url = "'$DOMAIN'"' -i /etc/user/data/homeassistant/config/config.yaml
|
yq eval .'.homeassistant.external_url = "'$DOMAIN'"' -i /etc/user/data/homeassistant/config/configuration.yaml
|
||||||
|
Reference in New Issue
Block a user