mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-08-03 18:27:40 +00:00
Fix version json name if image is missing (#741)
* Fix version json name if image is missing * Update hassos-supervisor
This commit is contained in:
parent
34fffa63f1
commit
9c554805b9
@ -42,7 +42,7 @@ if [ -z "${SUPERVISOR_IMAGE_ID}" ]; then
|
||||
# Get the latest from update information
|
||||
# Using updater information instead of config. If the config version is
|
||||
# broken, this creates a way (e.g., bad release).
|
||||
SUPERVISOR_VERSION_UPDATER=$(jq -r '.version // empty' "${SUPERVISOR_DATA}/updater.json" || echo "")
|
||||
SUPERVISOR_VERSION_UPDATER=$(jq -r '.version // empty' "${SUPERVISOR_DATA}/config.json" || echo "")
|
||||
SUPERVISOR_VERSION="${SUPERVISOR_VERSION_UPDATER:-latest}"
|
||||
|
||||
echo "[WARNING] Supervisor image missing, downloading a fresh one: ${SUPERVISOR_VERSION}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user