mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-17 21:24:20 +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
@@ -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