This commit is contained in:
glerak 2023-04-06 22:44:00 +02:00 committed by GitHub
parent 941a87a41f
commit cf9aad8858
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -70,13 +70,13 @@ if [ "$UPD" == "1" ]; then
msg_ok "Updated ${APP} LXC"
msg_ok "Update os system Successfull"
msg_info "Updating All Containers"
msg_info "Updating All Containers\n"
CONTAINER_LIST="${1:-$(podman ps -q)}"
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}"
LATEST_IMAGE="$(docker inspect --format "{{.Id}}" --type image "${CONTAINER_IMAGE}")"
LATEST_IMAGE="$(podman inspect --format "{{.Id}}" --type image "${CONTAINER_IMAGE}")"
if [[ "${RUNNING_IMAGE}" != "${LATEST_IMAGE}" ]]; then
echo "Updating ${container} image ${CONTAINER_IMAGE}"
systemctl restart homeassistant