update
This commit is contained in:
@@ -1,18 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
|
||||||
|
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
|
||||||
|
|
||||||
echo "[CHROOT] Updating apt and setting locale..."
|
|
||||||
apt-get update
|
|
||||||
apt-get install -y locales
|
|
||||||
echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
|
|
||||||
locale-gen
|
|
||||||
export LANG=en_US.UTF-8
|
|
||||||
|
|
||||||
echo "[CHROOT] Installing python3-cryptography safely..."
|
|
||||||
apt-get install -y python3-cryptography
|
|
||||||
|
|
||||||
echo "[CHROOT] Configuring Debian system..."
|
echo "[CHROOT] Configuring Debian system..."
|
||||||
|
|
||||||
echo 'APT::Get::Assume-Yes "true";' > /etc/apt/apt.conf.d/10-assume_yes
|
echo 'APT::Get::Assume-Yes "true";' > /etc/apt/apt.conf.d/10-assume_yes
|
||||||
@@ -24,10 +10,9 @@ echo "[CHROOT] Removing unnecessary packages..."
|
|||||||
apt-get remove --purge --allow-remove-essential pinentry-curses whiptail kmod iptables iproute2 dmidecode || true
|
apt-get remove --purge --allow-remove-essential pinentry-curses whiptail kmod iptables iproute2 dmidecode || true
|
||||||
|
|
||||||
echo "[CHROOT] Cleaning up..."
|
echo "[CHROOT] Cleaning up..."
|
||||||
dpkg --configure -a
|
|
||||||
apt-get install -f
|
|
||||||
apt-get clean
|
apt-get clean
|
||||||
rm -rf /var/lib/apt/lists/*
|
apt-get install -f
|
||||||
|
find /var/lib/apt/lists/ -type f -delete
|
||||||
|
|
||||||
echo "[CHROOT] Done. Type 'exit' to return."
|
echo "[CHROOT] Done. Type 'exit' to return."
|
||||||
exit
|
exit
|
||||||
|
|||||||
Reference in New Issue
Block a user