case "$(facter operatingsystem)" in
Ubuntu)
+ # catch extra auto-update scripts that were missed in packer
+ sed -ine 's/"1"/"0"/g' /etc/apt/apt.conf.d/10periodicne
+ sed -ine 's/"1"/"0"/g' /etc/apt/apt.conf.d/20auto-upgrades
+
apt-get update
# make sure that the ca-certs are properly updated
/usr/sbin/update-ca-certificates
# attach to the fd.io.dev apt repo
echo 'deb http://nexus.fd.io/content/repositories/fd.io.dev/ ./' >> /etc/apt/sources.list
+
+ # Configure Ubuntu mirror
+ perl -pi -e 'unless(m{(security|fd\.io)}){ s{://[^/]+/}{://ca.archive.ubuntu.com/} }' /etc/apt/sources.list
;;
*)
# Do nothing on other distros for now