From 531814eef06b601ca09cf680ab7e91ffa351baee Mon Sep 17 00:00:00 2001 From: tteckster Date: Sat, 23 Oct 2021 22:47:29 -0400 Subject: [PATCH] Update debian11_setup.sh --- debian11_setup.sh | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/debian11_setup.sh b/debian11_setup.sh index 86b20a4f..df2a3e1e 100644 --- a/debian11_setup.sh +++ b/debian11_setup.sh @@ -31,9 +31,9 @@ apt-get -y purge openssh-{client,server} >/dev/null apt-get autoremove >/dev/null # Update container OS -msg "Updating container OS..." +#msg "Updating container OS..." #apt-get update --allow-releaseinfo-change &>/dev/null -apt-get upgrade &>/dev/null +#apt-get upgrade &>/dev/null # Install prerequisites msg "Installing prerequisites..." @@ -43,13 +43,13 @@ apt-get -qqy install \ # Customize Docker configuration # msg "Customizing Docker..." -DOCKER_CONFIG_PATH='/etc/docker/daemon.json' -mkdir -p $(dirname $DOCKER_CONFIG_PATH) -cat >$DOCKER_CONFIG_PATH <<'EOF' -{ - "log-driver": "journald" -} -EOF +#DOCKER_CONFIG_PATH='/etc/docker/daemon.json' +#mkdir -p $(dirname $DOCKER_CONFIG_PATH) +#cat >$DOCKER_CONFIG_PATH <<'EOF' +#{ +# "log-driver": "journald" +#} +#EOF # Customize container msg "Customizing container..." @@ -66,6 +66,11 @@ EOF systemctl daemon-reload systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//') +# Update container OS +msg "Updating container OS..." +apt-get update >/dev/null +apt-get upgrade &>/dev/null + # Cleanup container msg "Cleanup..." rm -rf /debian11_setup.sh /var/{cache,log}/* /var/lib/apt/lists/*