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:
Pascal Vizeli 2020-06-15 14:48:02 +02:00 committed by GitHub
parent 83cbc37422
commit 0991cc1c25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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