Update CLI 4.11.0 (#1920)

This commit is contained in:
Pascal Vizeli
2021-03-15 15:03:00 +01:00
committed by GitHub
parent d310eff00f
commit b593f795c5
7 changed files with 32 additions and 5 deletions

View File

@@ -1,5 +1,9 @@
# Changelog
## 7.12.2
- Update Home Assistant CLI to 4.11.0
## 7.12.1
- Update options schema for passwords

View File

@@ -7,6 +7,6 @@
"i386": "homeassistant/i386-base:3.11"
},
"args": {
"CLI_VERSION": "4.2.0"
"CLI_VERSION": "4.11.0"
}
}

View File

@@ -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",

View File

@@ -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

View File

@@ -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"
}

View File

@@ -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",
@@ -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
@@ -32,7 +33,8 @@
"password": "password",
"server": {
"tcp_forwarding": "bool"
}
},
"apks": ["str"]
},
"image": "homeassistant/{arch}-addon-ssh"
}

View File

@@ -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