Assume yes to ugrade

This commit is contained in:
Stephane Gourichon
2024-04-02 23:30:28 +02:00
parent 3044d9c2ec
commit 5df5a4c957
2 changed files with 2 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
FROM debian:stable-slim
MAINTAINER Stéphane Gourichon <stephane_sysadmin@gourichon.org>
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/

View File

@@ -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