From f21f5eaab16a58ad6dcfb59ab2ed7a8fec4dec9a Mon Sep 17 00:00:00 2001 From: Paul Sinclair <24625998+sinclairpaul@users.noreply.github.com> Date: Sun, 18 Oct 2020 10:46:02 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8Ignore=20DB=20files=20on=20copy=20f?= =?UTF-8?q?or=20check=5Fconfig=20(#1627)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 🔨Add rsync * 🔨Switch cp to rsync and ignore ha db files * ✏Bump version * ✏Update changelog * 👕Formatting changes --- check_config/CHANGELOG.md | 5 +++++ check_config/Dockerfile | 3 +++ check_config/config.json | 2 +- check_config/rootfs/etc/services.d/check-config/run | 2 +- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/check_config/CHANGELOG.md b/check_config/CHANGELOG.md index 145a557..ecfb448 100644 --- a/check_config/CHANGELOG.md +++ b/check_config/CHANGELOG.md @@ -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 diff --git a/check_config/Dockerfile b/check_config/Dockerfile index 1187019..cabaf29 100644 --- a/check_config/Dockerfile +++ b/check_config/Dockerfile @@ -1,5 +1,8 @@ ARG BUILD_FROM FROM $BUILD_FROM +RUN apk add --no-cache \ + rsync + # Copy data COPY rootfs / diff --git a/check_config/config.json b/check_config/config.json index 151a655..3453d4b 100644 --- a/check_config/config.json +++ b/check_config/config.json @@ -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", diff --git a/check_config/rootfs/etc/services.d/check-config/run b/check_config/rootfs/etc/services.d/check-config/run index 5a618e4..c2a8539 100644 --- a/check_config/rootfs/etc/services.d/check-config/run +++ b/check_config/rootfs/etc/services.d/check-config/run @@ -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..."