mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-27 15:06:29 +00:00
* Try using old image name of the Supervisor image * Tag the old image with the new name so recreation works
This commit is contained in:
parent
30a0bb6d85
commit
cf11b5a745
@ -33,6 +33,13 @@ fi
|
|||||||
# If Supervisor image is missing, pull it
|
# If Supervisor image is missing, pull it
|
||||||
mkdir -p "$(dirname ${SUPERVISOR_STARTUP_MARKER})"
|
mkdir -p "$(dirname ${SUPERVISOR_STARTUP_MARKER})"
|
||||||
touch ${SUPERVISOR_STARTUP_MARKER}
|
touch ${SUPERVISOR_STARTUP_MARKER}
|
||||||
|
if [ -z "${SUPERVISOR_IMAGE_ID}" ]; then
|
||||||
|
# Try tagging legacy image with current name and try get its ID
|
||||||
|
echo "[WARNING] Supervisor image missing, trying to use the legacy image name"
|
||||||
|
docker tag "homeassistant/${SUPERVISOR_ARCH}-hassio-supervisor:latest" "${SUPERVISOR_IMAGE}:latest" || true
|
||||||
|
SUPERVISOR_IMAGE_ID=$(docker images --no-trunc --filter "reference=${SUPERVISOR_IMAGE}:latest" --format "{{.ID}}" || echo "")
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -z "${SUPERVISOR_IMAGE_ID}" ]; then
|
if [ -z "${SUPERVISOR_IMAGE_ID}" ]; then
|
||||||
# Get the latest from update information
|
# Get the latest from update information
|
||||||
# Using updater information instead of config. If the config version is
|
# Using updater information instead of config. If the config version is
|
||||||
|
Loading…
x
Reference in New Issue
Block a user