🔨Ignore DB files on copy for check_config (#1627)

* 🔨Add rsync

* 🔨Switch cp to rsync and ignore ha db files

* ✏Bump version

* ✏Update changelog

* 👕Formatting changes
This commit is contained in:
Paul Sinclair
2020-10-18 10:46:02 -04:00
committed by GitHub
parent 41fd7c1acb
commit f21f5eaab1
4 changed files with 10 additions and 2 deletions

View File

@@ -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

View File

@@ -1,5 +1,8 @@
ARG BUILD_FROM
FROM $BUILD_FROM
RUN apk add --no-cache \
rsync
# Copy data
COPY rootfs /

View File

@@ -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",

View File

@@ -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..."