Fix config check add-on (#1201)

* Fix config check add-on

* Fix restart
This commit is contained in:
Pascal Vizeli
2020-03-31 18:51:06 +02:00
committed by GitHub
parent 78c41f724f
commit 3d36f05b95
6 changed files with 31 additions and 26 deletions

View File

@@ -1,34 +1,30 @@
# Changelog
## 3.1
## 3.2.0
- Update base image to version 7.1.0
- Migrate to S6-overlay
## 3.1.0
- Moved the 'reassurance' log message "Don't worry, this temporary installation is not overwriting your current one." to earlier in the process.
## 3.0
## 3.0.0
- Use Home Assistant base image as base for this Add-on
- Disable external UDEV
## 2.2
## 2.2.0
- Update python/alpine to HA 0.96
## 2.1
## 2.1.0
- Adds additional information in log output to avoid confusion
## 2.0
## 2.0.0
- Migrated add-on onto Bashio
- Improved add-on log output
- Added documentation to add-on itself
- Added support for Home Assistant wheels repository
## 1.0
- Update to Python 3.7
- Add colorlog to pip packages
## 0.9
- Fix build errors with 0.76

View File

@@ -2,6 +2,4 @@ ARG BUILD_FROM
FROM $BUILD_FROM
# Copy data
COPY data/run.sh /
CMD [ "/run.sh" ]
COPY rootfs /

View File

@@ -1,9 +1,9 @@
{
"build_from": {
"aarch64": "homeassistant/aarch64-homeassistant-base:4.0",
"amd64": "homeassistant/amd64-homeassistant-base:4.0",
"armhf": "homeassistant/armhf-homeassistant-base:4.0",
"armv7": "homeassistant/armv7-homeassistant-base:4.0",
"i386": "homeassistant/i386-homeassistant-base:4.0"
"aarch64": "homeassistant/aarch64-homeassistant-base:7.1.0",
"amd64": "homeassistant/amd64-homeassistant-base:7.1.0",
"armhf": "homeassistant/armhf-homeassistant-base:7.1.0",
"armv7": "homeassistant/armv7-homeassistant-base:7.1.0",
"i386": "homeassistant/i386-homeassistant-base:7.1.0"
}
}

View File

@@ -1,6 +1,6 @@
{
"name": "Check Home Assistant configuration",
"version": "3.1",
"version": "3.2.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",
@@ -8,6 +8,7 @@
"udev": true,
"startup": "once",
"boot": "manual",
"init": false,
"map": ["config", "ssl"],
"options": {
"version": "latest"

View File

@@ -0,0 +1,5 @@
#!/usr/bin/execlineb -S0
# ==============================================================================
# Take down the S6 supervision tree when config check is done
# ==============================================================================
s6-svscanctl -t /var/run/s6/services

View File

@@ -1,8 +1,13 @@
#!/usr/bin/env bashio
set -e
#!/usr/bin/with-contenv bashio
# ==============================================================================
# Start config checker service
# ==============================================================================
VERSION=$(bashio::config 'version')
# Create udev devices
bashio::log.info "Setup udev devices"
bashio::hardware.trigger
# Generate install string
CMD="homeassistant"
if [ "${VERSION}" != "latest" ]; then