1
0
mirror of https://github.com/tteck/Proxmox.git synced 2024-12-26 10:49:56 +02:00

Update podman-homeassistant.sh

https://github.com/tteck/Proxmox/issues/1994
This commit is contained in:
tteckster 2023-11-01 19:16:54 -04:00 committed by GitHub
parent 15f1343a00
commit 19a6a06f5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,7 +74,7 @@ if [ "$UPD" == "1" ]; then
for container in ${CONTAINER_LIST}; do
CONTAINER_IMAGE="$(podman inspect --format "{{.Config.Image}}" --type container ${container})"
RUNNING_IMAGE="$(podman inspect --format "{{.Image}}" --type container "${container}")"
podman pull "docker.io/${CONTAINER_IMAGE}"
podman pull "${CONTAINER_IMAGE}"
LATEST_IMAGE="$(podman inspect --format "{{.Id}}" --type image "${CONTAINER_IMAGE}")"
if [[ "${RUNNING_IMAGE}" != "${LATEST_IMAGE}" ]]; then
echo "Updating ${container} image ${CONTAINER_IMAGE}"