diff --git a/bootstrap.sh b/bootstrap.sh index a408783..97ffc29 100644 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -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