Merge pull request #21 from home-assistant/build

Add travis / Fix ssh
This commit is contained in:
Pascal Vizeli
2017-04-30 22:32:52 +02:00
committed by GitHub
3 changed files with 19 additions and 2 deletions

17
.travis.yml Normal file
View File

@@ -0,0 +1,17 @@
language: bash
# Use container-based infrastructure for quicker build start-up
sudo: false
addons:
apt:
sources:
- debian-sid # Grab shellcheck from the Debian repo (o_O)
packages:
- shellcheck
script:
- bash -c 'shopt -s globstar; shellcheck **/*.sh'
matrix:
fast_finish: true

View File

@@ -1,6 +1,6 @@
{
"name": "SSH server",
"version": "0.2",
"version": "0.3",
"slug": "ssh",
"description": "Connect to your server over SSH",
"startup": "before",

View File

@@ -23,7 +23,7 @@ if [ ! -d "$KEYS_PATH" ]; then
ssh-keygen -A
cp -fp /etc/ssh/ssh_host* "$KEYS_PATH/"
else
cp -fp "$KEYS_PATH/*" /etc/ssh/
cp -fp "$KEYS_PATH"/* /etc/ssh/
fi
# start server