refactor: complete rename to bom-local-card and update documentation for dev/prod modes

This commit is contained in:
2025-12-18 20:53:36 +10:00
parent 55195649e8
commit b37dde1674
12 changed files with 78 additions and 72 deletions
+3 -3
View File
@@ -99,16 +99,16 @@ clean_test() {
fi
# Clean up www directory files (card file) using Docker if needed
if [ -f "test-ha/config/www/bom-local-radar-card.js" ]; then
if [ -f "test-ha/config/www/bom-local-card.js" ]; then
echo " Removing card file..."
CURRENT_UID=$(id -u)
CURRENT_GID=$(id -g)
if ! rm -f test-ha/config/www/bom-local-radar-card.js 2>/dev/null; then
if ! rm -f test-ha/config/www/bom-local-card.js 2>/dev/null; then
docker run --rm \
-v "$(pwd)/test-ha/config/www:/www:rw" \
-u root \
alpine:latest \
sh -c "rm -f /www/bom-local-radar-card.js" 2>/dev/null || true
sh -c "rm -f /www/bom-local-card.js" 2>/dev/null || true
fi
fi