From 5df5a4c957ee5dfd2a397bde2de4b2f5db52b543 Mon Sep 17 00:00:00 2001 From: Stephane Gourichon Date: Tue, 2 Apr 2024 23:30:28 +0200 Subject: [PATCH] Assume yes to ugrade --- public_services/gourichon_org/domain/Dockerfile | 2 +- tools/containers_check_update_rebuild_switch.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public_services/gourichon_org/domain/Dockerfile b/public_services/gourichon_org/domain/Dockerfile index a946bec..0b6eac7 100644 --- a/public_services/gourichon_org/domain/Dockerfile +++ b/public_services/gourichon_org/domain/Dockerfile @@ -1,7 +1,7 @@ FROM debian:stable-slim MAINTAINER Stéphane Gourichon -RUN export DEBIAN_FRONTEND=noninteractive ; apt-get update && apt-get upgrade +RUN export DEBIAN_FRONTEND=noninteractive ; apt-get update && apt-get -y upgrade RUN export DEBIAN_FRONTEND=noninteractive ; apt-get install --no-install-recommends -y bind9 COPY named.conf.local /etc/bind/ diff --git a/tools/containers_check_update_rebuild_switch.sh b/tools/containers_check_update_rebuild_switch.sh index 9f2f5e3..ddfdd94 100755 --- a/tools/containers_check_update_rebuild_switch.sh +++ b/tools/containers_check_update_rebuild_switch.sh @@ -36,7 +36,7 @@ for CONTAINER_ID in "${CONTAINER_IDS[@]}" do echo "Processing $CONTAINER_ID" TMPFILE=$(mktemp) - docker exec -u root $CONTAINER_ID bash -c "export LC_ALL=C ; apt-get update ; apt-get upgrade --dry-run" | tee $TMPFILE + docker exec -u root $CONTAINER_ID bash -c "export LC_ALL=C ; apt-get update ; apt-get upgrade -y --dry-run" | tee $TMPFILE trap "rm $TMPFILE" EXIT if grep "0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded." $TMPFILE then