bootstrap.sh aktualisiert
Add sleep for wating of the release og the dpkg lock-frontend
This commit is contained in:
parent
0626cb5dd5
commit
aae23e6fa3
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue