From aae23e6fa3592ab109b08ba9ae89e4338564135e Mon Sep 17 00:00:00 2001 From: kevinheyer Date: Sun, 6 Apr 2025 11:29:19 +0000 Subject: [PATCH] bootstrap.sh aktualisiert Add sleep for wating of the release og the dpkg lock-frontend --- bootstrap.sh | 5 +++++ 1 file changed, 5 insertions(+) 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