From 0991cc1c25346378d31478c591d8c76cf0d187fb Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Mon, 15 Jun 2020 14:48:02 +0200 Subject: [PATCH] Fix version json name if image is missing (#741) * Fix version json name if image is missing * Update hassos-supervisor --- buildroot-external/rootfs-overlay/usr/sbin/hassos-supervisor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildroot-external/rootfs-overlay/usr/sbin/hassos-supervisor b/buildroot-external/rootfs-overlay/usr/sbin/hassos-supervisor index cf7027949..edbf94c75 100755 --- a/buildroot-external/rootfs-overlay/usr/sbin/hassos-supervisor +++ b/buildroot-external/rootfs-overlay/usr/sbin/hassos-supervisor @@ -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}"