Migrate ssh/git_pull to new hassio_api feature of 0.51 (#167)

* Update config.json

* Use new API link

* Update config.json

* Update run.sh

* Update config.json
This commit is contained in:
Pascal Vizeli
2017-08-09 09:32:38 +02:00
committed by GitHub
parent 15eb72cb60
commit d24aa7d3e4
4 changed files with 6 additions and 6 deletions

View File

@@ -1,11 +1,12 @@
{
"name": "Git pull",
"version": "0.2",
"version": "0.3",
"slug": "git_pull",
"description": "Simple git pull to update the local configuration",
"url": "https://home-assistant.io/addons/git_pull/",
"startup": "services",
"boot": "manual",
"hassio_api": true,
"options": {
"repositorie": null,
"auto_restart": false,

View File

@@ -31,7 +31,7 @@ while true; do
if [ ! -z "$changed_files" ]; then
echo "[Info] files changed, restart Home-Assistant"
curl -s http://172.17.0.2/homeassistant/restart 2&> /dev/null || true
curl -s http://hassio/homeassistant/restart 2&> /dev/null || true
fi
fi