bootstrap.sh aktualisiert

Add sleep for wating of the release og the dpkg lock-frontend
This commit is contained in:
kevinheyer 2025-04-06 11:29:19 +00:00
parent 0626cb5dd5
commit aae23e6fa3

View file

@ -32,6 +32,11 @@ systemctl restart sshd
echo "[+] Setting timezone to Europe/Berlin..."
timedatectl set-timezone Europe/Berlin
echo "[+] Waiting for dpkg lock to be released..."
while fuser /var/lib/dpkg/lock-frontend >/dev/null 2>&1; do
sleep 3
done
echo "[+] Updating package list and installing essential packages..."
apt-get update -y
apt-get install -y sudo curl wget gnupg lsb-release software-properties-common