mirror of
https://github.com/aljazceru/addons.git
synced 2026-02-08 22:54:25 +01:00
check_config: bugfixes (#388)
* do not copy config to /tmp on boot - Closes home-assistant/hassio-addons#374 * check_config: version bump * check_config: add OS deps to satisfy cffi * check_config: .. and build-base * Create build.json * Update Dockerfile * Update run.sh
This commit is contained in:
@@ -1,11 +1,8 @@
|
||||
ARG BUILD_FROM
|
||||
FROM $BUILD_FROM
|
||||
|
||||
# Add env
|
||||
ENV LANG C.UTF-8
|
||||
|
||||
# Setup base
|
||||
RUN apk add --no-cache jq python3 \
|
||||
RUN apk add --no-cache jq gcc libffi-dev libressl-dev \
|
||||
&& pip3 install --no-cache --upgrade pip
|
||||
|
||||
# Copy data
|
||||
|
||||
8
check_config/build.json
Normal file
8
check_config/build.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"build_from": {
|
||||
"amd64": "homeassistant/amd64-base-python:3.6",
|
||||
"i386": "homeassistant/i386-base-python:3.6",
|
||||
"armhf": "homeassistant/armhf-base-python:3.6",
|
||||
"aarch64": "homeassistant/aarch64-base-python:3.6"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "Check Home Assistant configuration",
|
||||
"version": "0.7",
|
||||
"version": "0.8",
|
||||
"slug": "check_config",
|
||||
"description": "Check current Home Assistant configuration against a new version",
|
||||
"url": "https://home-assistant.io/addons/check_config/",
|
||||
|
||||
@@ -22,7 +22,7 @@ fi
|
||||
|
||||
echo "[Info] Install done, check config now"
|
||||
|
||||
cp -r /config /tmp/config > /dev/null
|
||||
cp -fr /config /tmp/config
|
||||
if ! HASS_OUTPUT="$(hass -c /tmp/config --script check_config)"
|
||||
then
|
||||
echo "[Error] Wrong config found!"
|
||||
|
||||
Reference in New Issue
Block a user