* disabled StrictHostKeyChecking during ssh key validation
* adds support to (ssh cloned) github repositories on key validation
* update Changelog and config.json
* 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
* 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
* 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
* Update config.json
* Update run.sh
* Single quotes.. ?
* Nope.. single quotes did not work
* Splitting on space and putting it back together
Spaced..
* Gosh
* Update run.sh
* Cropping msg
Since we wish to output the results from tdtool in either way (error or regular response) i cropped the catching of output.
* Keep it simple.
* ...
* hmm
* Update run.sh
* Update run.sh
* Update run.sh
* Fix bash variable input
This will cause error in validation.
i have tried with
if ! msg="$(tdtool --"$input")"; then
if ! msg="$(tdtool --"${input}")"; then
if ! msg="$(tdtool --${input})"; then
without success.
The only one i got working in real life is the one in this PR.
* Trying variable with curlies
Changed frm only output errors to output all output from tdtool.
Enables listing of devices and sensors with output to add-on log.
* Update config.json
* fix not used exec
* fix lint
* update output
* 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
* Add binlogging caps
The default binlogging for mariadb will easily fill a modest disk after a couple of weeks on a busy instance. This setting will limit that usage and have mariadb rotate the logs out after 1 day.
* Disable binlogging on mariadb
Binlogging will, by default, run amok on the drive and fill it. It's also going to run a lot of write cycles to SD cards which will considerably shorten their lifespan.
* Update run.sh
* Update config.json
* Added telldus-core daemon module
Proof of concept to compile and install telldus-core as an addon. Needs more fixes to be able to communicate with python script in hassio docker.
* Revert "Added telldus-core daemon module"
This reverts commit 79c8e35b8379bed41bcf5e47923b2946525d2a2a.
* Added telldus-core add-on, proof of concept
Add-on will compile and install telldus-core as an add-on.
Tested to work with hardware.
Need more fixes in order for communication with homeassistant container to work.
* Updated with tellstick.conf check after installation
Secure that we have at least a basic tellstick.conf file. This will also allow user to migrate existing tellstick.conf file in to config without risking to have it overwritten.
* Altered exec to use --nodaemon
Using --nodaemon keeps the docker, daemon and add-on active, running just telldusd ends the docker unexpectedly.
* Updated build method to match the one in hass.io docker
Now using bjornes fork of telldus homeassistant-alpine as the source and thus sharing the same source as being used in the homeassistant docker.
* Update Dockerfile
* Compile telldus master branch rather than fork
Instead of using forked static code, apply small fixes to enable compilation on alpine.
* Removed search - replace of userid in tellstick.conf
Moved in to dockerfile
* Update run.sh
* Update Dockerfile
* Update config.json
* Update Dockerfile
* Rename telldus_core/Dockerfile to tellstick/Dockerfile
* Rename telldus_core/run.sh to tellstick/run.sh
* Rename telldus_core/config.json to tellstick/config.json
* Update config.json
* Update Dockerfile
* Update Dockerfile
* Update config.json
* Update run.sh
* Update run.sh
* Update config.json
* Update run.sh
* fix lint
* Update run.sh
* Update run.sh
* Update config.json
* Update Dockerfile
* Update Dockerfile
* fix lint
* Update Dockerfile
* Update run.sh
Altered some details for successful parsing of options into tellstick.conf.
* Update run.sh
* Update config.json
* Update config.json
Added example device to support the users getting started with configuration..
* 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
* 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
The current message does not say anything about the fact that no errors were found. Someone has to read the code to know that. Hence I suggest to detail this message