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 fi
# Define slug # Define slug
slug="${HOSTNAME}" slug="${HOSTNAME//-/_}"
# Check type of config folder # Check type of config folder
if [ ! -f /config/configuration.yaml ] && [ ! -f /config/configuration.json ]; then 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" CONFIGFILEBROWSER="/addon_configs/$slug/config.yaml"
else else
# Legacy config location # Legacy config location
slug="${HOSTNAME#*-}" slug="${HOSTNAME#*_}"
CONFIGLOCATION="/config/addons_config/${slug}" CONFIGLOCATION="/config/addons_config/${slug}"
CONFIGFILEBROWSER="/homeassistant/addons_config/$slug/config.yaml" CONFIGFILEBROWSER="/homeassistant/addons_config/$slug/config.yaml"
fi fi