scripts: Allow apt to finish doing initial updates

This commit is contained in:
Alexey Rogachevskiy
2020-07-09 17:03:44 +03:00
parent 46064eafe2
commit 11196f0c7d

View File

@@ -8,6 +8,9 @@ echo "--- Current environment:"
echo "Enabling passwordless sudo"
echo "${PASSWORD}" | sudo -E -S sh -c 'echo "clever ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers'
echo "--- Allowing apt to perform its updates"
sudo -E sh -c 'apt update; while fuser /var/lib/dpkg/lock ; do sleep 0.5 ; done'
echo "--- Installing open-vm-tools"
echo "${PASSWORD}" | sudo -E -S sh -c 'apt update; apt install -y open-vm-tools open-vm-tools-desktop'