Skip to content
Snippets Groups Projects
Commit b24232b1 authored by nimrod's avatar nimrod
Browse files

Wait for APT lock in the update script.

parent 43d55268
No related branches found
No related tags found
No related merge requests found
......@@ -23,9 +23,9 @@ _apt () {
header Updating APT
if [ -n "${DOWNLOAD_ONLY:-}" ]
then
sudo /bin/sh -c 'apt-get update && apt-get dist-upgrade --download-only --yes && apt-get autoclean'
sudo /bin/sh -c 'apt-get update && apt-get dist-upgrade -o DPkg::Lock::Timeout=300 --download-only --yes && apt-get autoclean'
else
sudo /bin/sh -c 'apt-get update && apt-get dist-upgrade --yes --auto-remove --purge && apt-get autoclean'
sudo /bin/sh -c 'apt-get update && apt-get dist-upgrade -o DPkg::Lock::Timeout=300 --yes --auto-remove --purge && apt-get autoclean'
fi
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment