corrected some path and values
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
DOMAIN=$DOMAIN
|
||||
DOMAIN=$HOMEASSISTANT_DOMAIN
|
||||
SELECTOR=$HOMEASSISTANT
|
||||
HOMEASSISTANT_IP=$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d '/' -f1)
|
||||
HOST_FILE=/etc/system/data/dns/hosts.local;
|
||||
@@ -17,7 +17,7 @@ fi
|
||||
|
||||
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.
|
||||
default_config:
|
||||
@@ -35,7 +35,7 @@ frontend:
|
||||
automation: !include automations.yaml
|
||||
script: !include scripts.yaml
|
||||
scene: !include scenes.yaml
|
||||
' >/etc/user/data/homeassistant/config/config.yaml
|
||||
' >/etc/user/data/homeassistant/config/configuration.yaml
|
||||
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