temporary

This commit is contained in:
2024-12-03 17:43:06 +01:00
parent 99e79a0742
commit 392cbb790f

View File

@@ -1,6 +1,6 @@
#!/bin/sh
DOMAIN=$HOMEASSISTANT_DOMAIN
HOMEASSISTANT_DOMAIN="https://$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;
@@ -22,20 +22,13 @@ if [ ! -f /etc/user/data/homeassistant/config/configuration.yaml ]; then
echo '# Loads default set of integrations. Do not remove.
default_config:
homeassistant:
external_url: "DOMAIN"
external_url: "http://localhost"
http:
use_x_forwarded_for: true
trusted_proxies:
- 172.18.104.2
- 172.18.105.2
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
- 172.18.105.2' >/etc/user/data/homeassistant/config/configuration.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
' >/etc/user/data/homeassistant/config/configuration.yaml
fi
yq eval .'.homeassistant.external_url = "'$DOMAIN'"' -i /etc/user/data/homeassistant/config/configuration.yaml
yq eval '.homeassistant.external_url = "'$HOMEASSISTANT_DOMAIN'"' -i /etc/user/data/homeassistant/config/configuration.yaml