mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-17 05:04:21 +01:00
git_pull: Upgrades Hassio CLI to v3.0.0 (#659)
This commit is contained in:
committed by
Pascal Vizeli
parent
bca7bad782
commit
e25440a776
@@ -1,5 +1,9 @@
|
||||
# Changelog
|
||||
|
||||
## 7.5
|
||||
|
||||
- Update Hass.io CLI to 3.0.0
|
||||
|
||||
## 7.4
|
||||
|
||||
- Update Hass.io CLI to 2.3.0
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"args": {
|
||||
"CLI_VERSION": "2.3.0"
|
||||
"CLI_VERSION": "3.0.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "Git pull",
|
||||
"version": "7.4",
|
||||
"version": "7.5",
|
||||
"slug": "git_pull",
|
||||
"description": "Simple git pull to update the local configuration",
|
||||
"url": "https://home-assistant.io/addons/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 homeassistant check; then
|
||||
if hassio --no-progress homeassistant 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 homeassistant restart 2&> /dev/null
|
||||
hassio --no-progress homeassistant restart 2&> /dev/null
|
||||
else
|
||||
echo "[Info] No Restart Required, only ignored changes detected"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user