Commit 18ee4aed by Stu Young Committed by GitHub

Merge pull request #3614 from edx/estute/adjust-bootstrap-script-for-xenial

disable auto apt updates in xenial
parents 5c9849da e3b455bf
......@@ -92,6 +92,17 @@ fi
EDX_PPA="deb http://ppa.edx.org ${SHORT_DIST} main"
# Temporarily turn off the automatic updates for Xenial (16.04) to avoid
# conflicts with this script
if [ $SHORT_DIST == "xenial" ]; then
systemctl stop apt-daily.service
systemctl kill --kill-who=all apt-daily.service
while lsof |grep -q /var/lib/dpkg/lock; do
echo "Waiting for apt to release the dpkg lock..."
sleep 5
done
fi
# Upgrade the OS
apt-get update -y
apt-key update -y
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment