Merge "Disable automatic system updates on Ubuntu"
authorThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 20 Jan 2017 14:32:40 +0000 (14:32 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Fri, 20 Jan 2017 14:32:40 +0000 (14:32 +0000)
packer/provision/baseline.sh

index 7eca1cabd5cd15ef14bf7f73ef9368c2a7df93ae..976cf4cf6c1dc820f62c213f56b455a3d834f4ea 100644 (file)
@@ -149,6 +149,11 @@ EOF
     # install haveged to avoid low entropy rejecting ssh connections
     apt-get install haveged
     update-rc.d haveged defaults
+
+    # disable unattended upgrades & daily updates
+    echo '---> Disabling automatic daily upgrades'
+    sed -ine 's/"1"/"0"/g' /etc/apt/apt.conf.d/10periodic
+    echo 'APT::Periodic::Unattended-Upgrade "0";' >> /etc/apt/apt.conf.d/10periodic
 }
 
 all_systems() {