ssh: Update hassio cli to 2.1.0 (#527)

* ssh: Update hassio cli to 2.1.0

* ssh: Grammar and spelling fixes

* Update config.json
This commit is contained in:
Ville Skyttä
2019-03-04 10:03:10 +02:00
committed by Pascal Vizeli
parent d4d68d3b0f
commit aff51f34b8
5 changed files with 8 additions and 5 deletions

View File

@@ -1,5 +1,8 @@
# Changelog # Changelog
## 5.2
- Update Hass.io CLI to 2.1.0
## 5.1 ## 5.1
- Map all serial devices into container for manual adjustments - Map all serial devices into container for manual adjustments

View File

@@ -22,7 +22,7 @@ ARG CLI_VERSION
RUN apk add --no-cache curl \ RUN apk add --no-cache curl \
&& curl -Lso /usr/bin/hassio https://github.com/home-assistant/hassio-cli/releases/download/${CLI_VERSION}/hassio_${BUILD_ARCH} \ && curl -Lso /usr/bin/hassio https://github.com/home-assistant/hassio-cli/releases/download/${CLI_VERSION}/hassio_${BUILD_ARCH} \
&& chmod a+x /usr/bin/hassio \ && chmod a+x /usr/bin/hassio \
&& /usr/bin/hassio completion | sed "s/hassio-cli/hassio/g" > /usr/share/bash-completion/completions/hassio && /usr/bin/hassio completion > /usr/share/bash-completion/completions/hassio
# Copy data # Copy data
COPY run.sh / COPY run.sh /

View File

@@ -1,5 +1,5 @@
{ {
"args": { "args": {
"CLI_VERSION": "2.0.1" "CLI_VERSION": "2.1.0"
} }
} }

View File

@@ -1,6 +1,6 @@
{ {
"name": "SSH server", "name": "SSH server",
"version": "5.1", "version": "5.2",
"slug": "ssh", "slug": "ssh",
"description": "Allows connections over SSH", "description": "Allows connections over SSH",
"url": "https://home-assistant.io/addons/ssh/", "url": "https://home-assistant.io/addons/ssh/",

View File

@@ -28,7 +28,7 @@ elif [ -n "$PASSWORD" ]; then
sed -i s/#PasswordAuthentication.*/PasswordAuthentication\ yes/ /etc/ssh/sshd_config sed -i s/#PasswordAuthentication.*/PasswordAuthentication\ yes/ /etc/ssh/sshd_config
sed -i s/#PermitEmptyPasswords.*/PermitEmptyPasswords\ no/ /etc/ssh/sshd_config sed -i s/#PermitEmptyPasswords.*/PermitEmptyPasswords\ no/ /etc/ssh/sshd_config
else else
echo "[Error] You need setup a login!" echo "[Error] You need to setup a login!"
exit 1 exit 1
fi fi
@@ -44,7 +44,7 @@ else
cp -fp "$KEYS_PATH"/* /etc/ssh/ cp -fp "$KEYS_PATH"/* /etc/ssh/
fi fi
# Persist shell history by redirecting .ash_history to /data # Persist shell history by redirecting .bash_history to /data
touch /data/.bash_history touch /data/.bash_history
chmod 600 /data/.bash_history chmod 600 /data/.bash_history
ln -s -f /data/.bash_history /root/.bash_history ln -s -f /data/.bash_history /root/.bash_history