mirror of
https://github.com/tteck/Proxmox.git
synced 2024-12-25 14:31:56 +00:00
Update debian11_setup.sh
This commit is contained in:
parent
a136796704
commit
531814eef0
@ -31,9 +31,9 @@ apt-get -y purge openssh-{client,server} >/dev/null
|
|||||||
apt-get autoremove >/dev/null
|
apt-get autoremove >/dev/null
|
||||||
|
|
||||||
# Update container OS
|
# Update container OS
|
||||||
msg "Updating container OS..."
|
#msg "Updating container OS..."
|
||||||
#apt-get update --allow-releaseinfo-change &>/dev/null
|
#apt-get update --allow-releaseinfo-change &>/dev/null
|
||||||
apt-get upgrade &>/dev/null
|
#apt-get upgrade &>/dev/null
|
||||||
|
|
||||||
# Install prerequisites
|
# Install prerequisites
|
||||||
msg "Installing prerequisites..."
|
msg "Installing prerequisites..."
|
||||||
@ -43,13 +43,13 @@ apt-get -qqy install \
|
|||||||
|
|
||||||
# Customize Docker configuration
|
# Customize Docker configuration
|
||||||
# msg "Customizing Docker..."
|
# msg "Customizing Docker..."
|
||||||
DOCKER_CONFIG_PATH='/etc/docker/daemon.json'
|
#DOCKER_CONFIG_PATH='/etc/docker/daemon.json'
|
||||||
mkdir -p $(dirname $DOCKER_CONFIG_PATH)
|
#mkdir -p $(dirname $DOCKER_CONFIG_PATH)
|
||||||
cat >$DOCKER_CONFIG_PATH <<'EOF'
|
#cat >$DOCKER_CONFIG_PATH <<'EOF'
|
||||||
{
|
#{
|
||||||
"log-driver": "journald"
|
# "log-driver": "journald"
|
||||||
}
|
#}
|
||||||
EOF
|
#EOF
|
||||||
|
|
||||||
# Customize container
|
# Customize container
|
||||||
msg "Customizing container..."
|
msg "Customizing container..."
|
||||||
@ -66,6 +66,11 @@ EOF
|
|||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
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
|
# Cleanup container
|
||||||
msg "Cleanup..."
|
msg "Cleanup..."
|
||||||
rm -rf /debian11_setup.sh /var/{cache,log}/* /var/lib/apt/lists/*
|
rm -rf /debian11_setup.sh /var/{cache,log}/* /var/lib/apt/lists/*
|
||||||
|
Loading…
Reference in New Issue
Block a user