Assume yes to ugrade
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
FROM debian:stable-slim
|
FROM debian:stable-slim
|
||||||
MAINTAINER Stéphane Gourichon <stephane_sysadmin@gourichon.org>
|
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
|
RUN export DEBIAN_FRONTEND=noninteractive ; apt-get install --no-install-recommends -y bind9
|
||||||
|
|
||||||
COPY named.conf.local /etc/bind/
|
COPY named.conf.local /etc/bind/
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ for CONTAINER_ID in "${CONTAINER_IDS[@]}"
|
|||||||
do
|
do
|
||||||
echo "Processing $CONTAINER_ID"
|
echo "Processing $CONTAINER_ID"
|
||||||
TMPFILE=$(mktemp)
|
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
|
trap "rm $TMPFILE" EXIT
|
||||||
if grep "0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded." $TMPFILE
|
if grep "0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded." $TMPFILE
|
||||||
then
|
then
|
||||||
|
|||||||
Reference in New Issue
Block a user