Alexandre
2024-10-10 20:11:19 +02:00
committed by GitHub
parent 532d1dbcc1
commit 35a4ccad91

View File

@@ -13,7 +13,7 @@ if [ ! -d /config ]; then
fi
# Define slug
slug="${HOSTNAME}"
slug="${HOSTNAME//-/_}"
# Check type of config folder
if [ ! -f /config/configuration.yaml ] && [ ! -f /config/configuration.json ]; then
@@ -22,7 +22,7 @@ if [ ! -f /config/configuration.yaml ] && [ ! -f /config/configuration.json ]; t
CONFIGFILEBROWSER="/addon_configs/$slug/config.yaml"
else
# Legacy config location
slug="${HOSTNAME#*-}"
slug="${HOSTNAME#*_}"
CONFIGLOCATION="/config/addons_config/${slug}"
CONFIGFILEBROWSER="/homeassistant/addons_config/$slug/config.yaml"
fi