Commit Graph

38 Commits

Author SHA1 Message Date
Pascal Vizeli
f52e0d7a60 Update branch of add-ons with armv7 (#538)
* Update branch of add-ons with armv7

* update configurator

* Fix docker file

* Update docker files

* fix image

* Update

* certbot
2019-03-10 17:09:35 +01:00
Pascal Vizeli
06c9c94f94 Remove custom_dep & update arch tags 2019-03-06 15:38:18 +01:00
Fréderic Kinnaer
9f2d6102ce git_pull: fix restart_ignore for subdirectories (#516)
* git_pull: fix restart_ignore for subdirectories

* Update config.json

* Update CHANGELOG.md
2019-01-25 15:10:46 +01:00
Pascal Vizeli
a84f63cc76 git_pull 7.1 (#514)
* continue script when internet connection lost once (#511)

* continue script when internet connection lost once

changed some "exit 1" to "return 1" in function git-synchronize. By this, the script should not terminate when there's no internet connection during a repeat check. I left "exit 1" for the initial, critical and config topics => script should terminate here I think.

* improved style of "if" statement

* 7.1 Fix repeat option (#511)

* 7.1 Fix repeat option (#511)

* git_pull: Enhance restart_ignore to support whole directories (#513)

* git_pull: Enhance restart_ignore to support whole directories

* Missing double-quote
2019-01-24 17:30:19 +01:00
Pascal Vizeli
e8fa8aa5c8 Update New CLI (#500)
* Update New CLI

* Fix shell

* ssh: Include hassio bash completion (#501)
2019-01-09 13:59:44 +01:00
Alec Rust
332c0cec7c Improve wording in Git Pull output (#488)
Currently an example output is:

```sh
Updating ed47959..2da4bb6
Fast-forward
 configuration.yaml | 1 +
 1 file changed, 1 insertion(+)
[Info] Check if something is changed
[Info] Something has changed, check Home-Assistant config
```

For a while I thought the last line was an instruction to the user, especially since this config check seems to take the longest to complete.

This PR improves the wording of the last two lines to make it clearer what's happening:

```sh
Updating ed47959..2da4bb6
Fast-forward
 configuration.yaml | 1 +
 1 file changed, 1 insertion(+)
[Info] Checking if something has changed
[Info] Something has changed, checking Home-Assistant config...
```
2018-12-17 09:30:38 +01:00
Fréderic Kinnaer
04d1079008 git_pull: correct technical error in CHANGELOG (#486) 2018-12-13 14:33:30 +01:00
Fréderic Kinnaer
96c9f0c020 git_pull: fix for home-assistant/hassio-addons#480 (#481)
* git_pull: fix git diff command - #480

* git_pull: version bump & update CHANGELOG
2018-12-13 10:51:26 +01:00
Adam Goodbar
65082b5361 Support the changes in specific files without restarting home assistant (#475)
* Support the changes in specific files without restarting home assistant

Support the changes in specific files without restarting home assistant.  Files such as the lovelace config can be picked up without a restart of the service, decreasing impact of changes.

* Syntax Changes

* Shellcheck Fixes

* Remove extra quote

* Update config.json

* Update CHANGELOG.md
2018-12-06 11:44:34 +01:00
Franck Nijhof
c47b3673de ⬆️ Upgrades Hassio CLI to 1.4.0 (#411)
* ⬆️ Upgrades Hassio CLI to 1.4.0

* Update CHANGELOG.md

* Update config.json

* Update CHANGELOG.md

* Update config.json

* Update CHANGELOG.md
2018-09-23 01:27:37 +02:00
Pascal Vizeli
8551273568 Remove bluetooth add-on & fix lint (#400) 2018-09-06 00:05:50 +02:00
Censored3
193b988174 git_pull: bugfixes and enhancements (#386)
* enhancement, bugfixes, version bump

* fix travis ci errors

* Fixes #389 and enhancement: git_prune

* add double-quoting/fix travis

* Bugfix after fixing CI errors

* check_config bugfix: always do a git fetch

* Bugfix: always fetch; Code Optimization

* Code Optimization

* Prune not only when switching branch

* Verbosity
2018-08-29 00:30:21 +02:00
Fabian Fischer
c6414d48bf Fixed typo (#382)
This is a one-byte pull request ;-)
2018-08-20 16:47:56 +02:00
Matt White
e5e8bcd359 Modify git_pull to support reset as well as pull (#350)
* - Add git option to use reset instead of pull.
- Add check that we are using the correct origin URL
- Add options to specify git branch

* Fix bug in git-synchronise function

Modify validate-config to report when restart is required
if AUTO_RESTART is false

* Tidy up output

* Added double quotes

* Add extra line so that Travis build checks pass
2018-07-06 12:12:44 +02:00
Pascal Vizeli
cdf2687b9f Fix lint SC2235 2018-06-12 14:49:00 +02:00
Franck Nijhof
594d0433ec ⬆️ Updates Hass.io CLI to 1.3.1 (#309) 2018-06-01 16:51:21 +02:00
Pascal Vizeli
473a37b8be CLI 1.3.0 (#284)
* Update config.json

* Update build.json

* Update CHANGELOG.md

* Update Dockerfile

* Update config.json

* Update build.json

* Update CHANGELOG.md

* Update CHANGELOG.md
2018-05-02 14:55:48 +02:00
Pascal Vizeli
f9527761e6 Update Hass.io CLI 1.2.1 (#251) 2018-02-25 13:48:13 +01:00
Pascal Vizeli
d169c946b0 Upgrade cli to 1.1.2 (#247)
* Update build.json

* Update config.json

* Update CHANGELOG.md

* Update build.json

* Update config.json

* Update CHANGELOG.md
2018-02-10 17:34:31 +01:00
Pascal Vizeli
a7365431e1 Downgrade hassio-cli 1.0.1 (#246)
* Update build.json

* Update build.json

* Update CHANGELOG.md

* Update config.json

* Update CHANGELOG.md

* Update config.json
2018-02-07 23:13:16 +01:00
Pascal Vizeli
2607a63ba9 Update CLI to 1.1.1 (#245)
* Update CLI to 1.1.1

* Update config.json

* Update CHANGELOG.md

* Update run.sh

* Update build.json

* Update config.json

* Update CHANGELOG.md

* Update CHANGELOG.md
2018-02-07 22:54:49 +01:00
Rubens Panfili
17576219dc GitPull: add support for ssh cloned GitHub repositories (#241)
* disabled StrictHostKeyChecking during ssh key validation

* adds support to (ssh cloned) github repositories on key validation

* update Changelog and config.json
2018-02-06 14:06:56 +01:00
Raiford
a3adccafa7 Username and password support for git_pull addon (#217)
* Add user/password support to git pull.

This can be used for private repositories that don't support ssh.
Ex: https://cloud.google.com/source-repositories/docs/

* Remove unnecessary err redirection.

* Bump git_pull version to 3.1

* Update config.json

* Update CHANGELOG.md

* Update CHANGELOG.md

* address commands
2018-01-19 11:56:58 +01:00
Maarten Groeneweg
bf67692f9d new implementation for git pull (#218)
* new implementation for git pull

* implemented review comments: use absolute paths

* fixed linting errors and warnings

* fixed spellcheck hints, and ignored one of them

* Update config.json

* Create CHANGELOG.md

* Update Dockerfile

* Create build.json

* add new cli
2018-01-11 15:09:32 +01:00
Alex Barcelo
ebd0f5931b Fix StrictHostKeyChecking-related failure (#211)
* Fix StrictHostKeyChecking-related failure

For ssh-through git connections, the git pull fails because the host key will not be automatically added to known_hosts.

This should fix that by allowing the key to be put into the known_hosts.

Note that if the remote server ssh key changes, the git operation will fail. That seems a reasonably safe security fallback.

* Update config.json
2017-12-09 22:56:38 +01:00
Julian Kaffke
2bc8d29eb4 git_pull: Prevent plugin from always restarting hass.io even if nothing has changed (#205)
* Prevent git module from always restarting hass.io

`git diff-tree -r --name-only --no-commit-id 'HEAD@{1}' HEAD)` always shows a difference. Getting the commit id prior to pulling is easy and comparing it to the one after pulling makes sure, that checking and restart is only done if ids have changed.

* Forgot to get the OLD_COMMIT id

* Better sorting and further comments

* Pleasing the linter

* Update config.json
2017-12-04 12:44:51 +01:00
Delio Castillo
f07db8dc89 Update config.json (#202)
addresses #198 where some repos addresses such as `gitlab@git.domain.com:group/repo.git` were not matched by the validator.
2017-11-21 16:07:51 +01:00
Delio Castillo
c077c9fb8d Use reflog to calculate diff and allow 'git://' repo addresses (#198)
* use reflog instead of ORIG_HEAD to get the changes

* Allow git:// URLS too

Requiring url in repo only allows for https addresses

* trying to fix the tests and regex match

* fix lint
2017-11-14 11:36:13 +01:00
Alex Barcelo
ea5d7b5920 Adding support for deployment_key for git_pull addon (#196)
* adding support for deployment_key for git_pull addon

* safer usage of bash vars

* fixed $HOME vs ~ typo

* more specific schema for deployment_key_protocol

* adding ssh-client to git pull addon image

* only ...-client package needed

* Pump version to 2.0
2017-10-29 10:22:40 +01:00
Pascal Vizeli
d8597e1c45 fix style 2017-10-06 14:33:50 +02:00
Pascal Vizeli
e939d8783c New build system (#179)
* Update Dockerfile

* Update Dockerfile

* Update Dockerfile

* Update Dockerfile

* Update Dockerfile

* Update Dockerfile

* Update Dockerfile

* Update Dockerfile

* Update Dockerfile

* Create build.json

* Update Dockerfile

* Update Dockerfile

* Create build.json

* Update build.json
2017-09-25 00:12:26 +02:00
Pascal Vizeli
04ad144450 Git_pull check config before restart (#174)
* Update run.sh

* Update config.json

* report invalid config
2017-08-25 15:46:51 +02:00
Thibault Maekelbergh
579d2168df Rename all keys & consts from repositorie to repository (#173)
* Change key repositorie to repository

Patch bump version

* Change const REPOSITORIE to REPOSITORY

* Correct the key interpolation from /data/options.json

* Pump version for config changes

* Update config
2017-08-25 15:28:50 +02:00
Pascal Vizeli
d24aa7d3e4 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
2017-08-09 09:32:38 +02:00
Fabian Affolter
15eb72cb60 Update description 2017-08-04 21:11:58 +02:00
Pascal Vizeli
03adf26d93 Bugfix cleanup config folder git (#166)
* Update run.sh

* Update config.json
2017-08-04 16:25:42 +02:00
Pascal Vizeli
6e872c3b91 add git pull logo 2017-08-03 16:52:20 +02:00
Pascal Vizeli
d85d9b4f54 Add first version of simple git sync (#162)
* Add first version of simple git sync

* fix lint
2017-08-01 00:21:46 +02:00