Skip to content

Commit 2b0666b

Browse files
authored
Fix: Home Assistant - Keep the same hass_config volume (#2160)
1 parent 2ef6ac2 commit 2b0666b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ct/homeassistant.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function update_script() {
4949
LATEST_IMAGE="$(docker inspect --format "{{.Id}}" --type image "${CONTAINER_IMAGE}")"
5050
if [[ "${RUNNING_IMAGE}" != "${LATEST_IMAGE}" ]]; then
5151
echo "Updating ${container} image ${CONTAINER_IMAGE}"
52-
DOCKER_COMMAND="$(runlike "${container}")"
52+
DOCKER_COMMAND="$(runlike --use-volume-id "${container}")"
5353
docker rm --force "${container}"
5454
eval ${DOCKER_COMMAND}
5555
fi
@@ -113,4 +113,4 @@ msg_ok "Completed Successfully!\n"
113113
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
114114
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
115115
echo -e "${TAB}${GATEWAY}${BGN}HA: http://${IP}:8123${CL}"
116-
echo -e "${TAB}${GATEWAY}${BGN}Portainer: http://${IP}:9443${CL}"
116+
echo -e "${TAB}${GATEWAY}${BGN}Portainer: http://${IP}:9443${CL}"

0 commit comments

Comments
 (0)