Update test script to copy HA config files on redeploy

This commit is contained in:
2025-12-18 02:05:36 +10:00
parent 571fcdadec
commit 4fd97e6ed8
+9
View File
@@ -283,6 +283,15 @@ if [ "$CONTAINERS_RUNNING" = "1" ]; then
echo "✅ Card file updated (${SOURCE_SIZE} bytes)" echo "✅ Card file updated (${SOURCE_SIZE} bytes)"
# Copy configuration files to HA config directory (for dashboard changes)
echo "📋 Updating HA configuration files..."
for config_file in configuration.yaml ui-lovelace.yaml; do
if [ -f "test-ha/$config_file" ]; then
cp "test-ha/$config_file" "test-ha/config/$config_file"
echo " ✅ Updated $config_file"
fi
done
# Restart HA to pick up changes # Restart HA to pick up changes
if docker compose version &> /dev/null; then if docker compose version &> /dev/null; then
DOCKER_COMPOSE_CMD="docker compose" DOCKER_COMPOSE_CMD="docker compose"