mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-17 05:04:21 +01:00
@@ -1,5 +1,9 @@
|
||||
# Changelog
|
||||
|
||||
## 7.9
|
||||
|
||||
- Update Home Assistant CLI to 4.0.1
|
||||
|
||||
## 7.8
|
||||
|
||||
- Added support for Azure DevOps repositories by removing the requirement for the `.git` suffix
|
||||
|
||||
@@ -7,9 +7,9 @@ RUN apk add --no-cache jq curl git openssh-client
|
||||
# Home Assistant CLI
|
||||
ARG BUILD_ARCH
|
||||
ARG CLI_VERSION
|
||||
RUN curl -Lso /usr/bin/hassio \
|
||||
"https://github.com/home-assistant/hassio-cli/releases/download/${CLI_VERSION}/hassio_${BUILD_ARCH}" \
|
||||
&& chmod a+x /usr/bin/hassio
|
||||
RUN curl -Lso /usr/bin/ha \
|
||||
"https://github.com/home-assistant/cli/releases/download/${CLI_VERSION}/ha_${BUILD_ARCH}" \
|
||||
&& chmod a+x /usr/bin/ha
|
||||
|
||||
# Copy data
|
||||
COPY data/run.sh /
|
||||
|
||||
@@ -7,6 +7,6 @@
|
||||
"i386": "homeassistant/i386-base:3.11"
|
||||
},
|
||||
"args": {
|
||||
"CLI_VERSION": "3.1.1"
|
||||
"CLI_VERSION": "4.0.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "Git pull",
|
||||
"version": "7.8",
|
||||
"version": "7.9",
|
||||
"slug": "git_pull",
|
||||
"description": "Simple git pull to update the local configuration",
|
||||
"url": "https://github.com/home-assistant/hassio-addons/tree/master/git_pull",
|
||||
|
||||
@@ -176,7 +176,7 @@ function validate-config {
|
||||
NEW_COMMIT=$(git rev-parse HEAD)
|
||||
if [ "$NEW_COMMIT" != "$OLD_COMMIT" ]; then
|
||||
echo "[Info] Something has changed, checking Home-Assistant config..."
|
||||
if hassio --no-progress homeassistant check; then
|
||||
if ha --no-progress core check; then
|
||||
if [ "$AUTO_RESTART" == "true" ]; then
|
||||
DO_RESTART="false"
|
||||
CHANGED_FILES=$(git diff "$OLD_COMMIT" "$NEW_COMMIT" --name-only)
|
||||
@@ -204,7 +204,7 @@ function validate-config {
|
||||
fi
|
||||
if [ "$DO_RESTART" == "true" ]; then
|
||||
echo "[Info] Restart Home-Assistant"
|
||||
hassio --no-progress homeassistant restart 2&> /dev/null
|
||||
ha --no-progress core restart 2&> /dev/null
|
||||
else
|
||||
echo "[Info] No Restart Required, only ignored changes detected"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user