Skip to content

Commit

Permalink
Update CLI 4.11.0 (home-assistant#1920)
Browse files Browse the repository at this point in the history
  • Loading branch information
pvizeli authored Mar 15, 2021
1 parent d310eff commit b593f79
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 5 deletions.
4 changes: 4 additions & 0 deletions git_pull/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 7.12.2

- Update Home Assistant CLI to 4.11.0

## 7.12.1

- Update options schema for passwords
Expand Down
2 changes: 1 addition & 1 deletion git_pull/build.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
"i386": "homeassistant/i386-base:3.11"
},
"args": {
"CLI_VERSION": "4.2.0"
"CLI_VERSION": "4.11.0"
}
}
2 changes: 1 addition & 1 deletion git_pull/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Git pull",
"version": "7.12.1",
"version": "7.12.2",
"slug": "git_pull",
"description": "Simple git pull to update the local configuration",
"url": "https://github.com/home-assistant/hassio-addons/tree/master/git_pull",
Expand Down
5 changes: 5 additions & 0 deletions ssh/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 9.1.0

- Upgrade Home Assistant CLI to 4.11.0
- Support APKs installation on startup

## 9.0.2

- Update options schema for passwords
Expand Down
2 changes: 1 addition & 1 deletion ssh/build.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"i386": "homeassistant/i386-base:3.13"
},
"args": {
"CLI_VERSION": "4.10.1",
"CLI_VERSION": "4.11.0",
"LIBWEBSOCKETS_VERSION": "4.1.4",
"TTYD_VERSION": "1.6.3"
}
Expand Down
6 changes: 4 additions & 2 deletions ssh/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Terminal & SSH",
"version": "9.0.2",
"version": "9.1.0",
"slug": "ssh",
"description": "Allow logging in remotely to Home Assistant using SSH",
"url": "https://github.com/home-assistant/hassio-addons/tree/master/ssh",
Expand All @@ -22,6 +22,7 @@
"map": ["config:rw", "ssl:rw", "addons:rw", "share:rw", "backup:rw", "media:rw"],
"options": {
"authorized_keys": [],
"apks": [],
"password": "",
"server": {
"tcp_forwarding": false
Expand All @@ -32,7 +33,8 @@
"password": "password",
"server": {
"tcp_forwarding": "bool"
}
},
"apks": ["str"]
},
"image": "homeassistant/{arch}-addon-ssh"
}
16 changes: 16 additions & 0 deletions ssh/rootfs/etc/cont-init.d/apks.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/with-contenv bashio
# ==============================================================================
# SSH install additional packages on startup
# ==============================================================================

if ! bashio::config.has_value "apks"; then
bashio::exit.ok
fi

apk update \
|| bashio::exit.nok "Failed updating Alpine packages indexes"

for package in $(bashio::config "apks"); do
apk add "$package" \
|| bashio::exit.nok "Failed installing ${package}"
done

0 comments on commit b593f79

Please sign in to comment.