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