From 2b0666bcf8f145c59de4071469535ee27e3d9006 Mon Sep 17 00:00:00 2001 From: Gene Hand Date: Sun, 9 Feb 2025 01:23:37 -0800 Subject: [PATCH] Fix: Home Assistant - Keep the same hass_config volume (#2160) --- ct/homeassistant.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ct/homeassistant.sh b/ct/homeassistant.sh index aa35e941..ecdeb64d 100644 --- a/ct/homeassistant.sh +++ b/ct/homeassistant.sh @@ -49,7 +49,7 @@ function update_script() { LATEST_IMAGE="$(docker inspect --format "{{.Id}}" --type image "${CONTAINER_IMAGE}")" if [[ "${RUNNING_IMAGE}" != "${LATEST_IMAGE}" ]]; then echo "Updating ${container} image ${CONTAINER_IMAGE}" - DOCKER_COMMAND="$(runlike "${container}")" + DOCKER_COMMAND="$(runlike --use-volume-id "${container}")" docker rm --force "${container}" eval ${DOCKER_COMMAND} fi @@ -113,4 +113,4 @@ msg_ok "Completed Successfully!\n" echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" echo -e "${INFO}${YW} Access it using the following URL:${CL}" echo -e "${TAB}${GATEWAY}${BGN}HA: http://${IP}:8123${CL}" -echo -e "${TAB}${GATEWAY}${BGN}Portainer: http://${IP}:9443${CL}" \ No newline at end of file +echo -e "${TAB}${GATEWAY}${BGN}Portainer: http://${IP}:9443${CL}"