Skip to content

Commit

Permalink
🔨Ignore DB files on copy for check_config (home-assistant#1627)
Browse files Browse the repository at this point in the history
* 🔨Add rsync

* 🔨Switch cp to rsync and ignore ha db files

* ✏Bump version

* ✏Update changelog

* 👕Formatting changes
  • Loading branch information
sinclairpaul authored Oct 18, 2020
1 parent 41fd7c1 commit f21f5ea
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions check_config/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 3.6.0

- Change to rsync for copy
- Ignore HA db files

## 3.5.0

- Update base image to version 8.4.0
Expand Down
3 changes: 3 additions & 0 deletions check_config/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
ARG BUILD_FROM
FROM $BUILD_FROM

RUN apk add --no-cache \
rsync

# Copy data
COPY rootfs /
2 changes: 1 addition & 1 deletion check_config/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Check Home Assistant configuration",
"version": "3.5.0",
"version": "3.6.0",
"slug": "check_config",
"description": "Check current Home Assistant configuration against a new version",
"url": "https://github.com/home-assistant/hassio-addons/tree/master/check_config",
Expand Down
2 changes: 1 addition & 1 deletion check_config/rootfs/etc/services.d/check-config/run
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ bashio::log.info "Installed Home Assistant ${INSTALLED_VERSION##*=}"

# Making a temporary copy of your configuration
bashio::log.info "Making a copy of your configuration for checking..."
cp -fr /config /tmp/config
rsync -avr --exclude='*home-assistant_v2*' /config/ /tmp/config --quiet

# Start configuration check
bashio::log.info "Checking your configuration against this version..."
Expand Down

0 comments on commit f21f5ea

Please sign in to comment.