]> git.sommitrealweird.co.uk Git - lxc-debian-unprivileged.git/commitdiff
Automatically upgrade without prompting
authorBrett Parker <iDunno@sommitrealweird.co.uk>
Sat, 21 May 2016 22:12:20 +0000 (23:12 +0100)
committerBrett Parker <iDunno@sommitrealweird.co.uk>
Sat, 21 May 2016 22:12:20 +0000 (23:12 +0100)
templates/lxc-debian-unprivileged

index d18a27e7ea66bde662a5bf66e921f8bf3adc7479..5c5f0855891a347b5ed842e599824cde531f2bb8 100755 (executable)
@@ -216,7 +216,7 @@ EOF
 
 # and update to the latest security
 chroot ${LXC_ROOTFS} apt-get update
-chroot ${LXC_ROOTFS} apt-get upgrade
+chroot ${LXC_ROOTFS} apt-get -y upgrade
 
 # if we're all good here, unmount things and clean up
 [ -e ${LXC_ROOTFS}/usr/sbin/policy-rc.d ] && rm ${LXC_ROOTFS}/usr/sbin/policy-rc.d