[tor-commits] [tor-cloud/master] The unattended-upgrades package is already installed, just configure it

runa at torproject.org runa at torproject.org
Sat Nov 12 15:59:47 UTC 2011


commit 3341078040e31d0ff81596c0addb03205eac6d80
Author: Runa A. Sandvik <runa.sandvik at gmail.com>
Date:   Sat Nov 12 15:59:28 2011 +0000

    The unattended-upgrades package is already installed, just configure it
---
 ec2-prep.sh |   10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/ec2-prep.sh b/ec2-prep.sh
index f1426c7..3caac60 100644
--- a/ec2-prep.sh
+++ b/ec2-prep.sh
@@ -21,18 +21,14 @@ echo "root required; re-run with sudo";
   exit 1;
 fi
 
-# Install and configure unattended-upgrades. The system will
-# automatically download, install and configure all packages, and reboot
-# if necessary.
-echo "Installing unattended-upgrades..."
-aptitude install unattended-upgrades
+# Configure unattended-upgrades. The system will automatically download,
+# install and configure all packages, and reboot if necessary.
+echo "Configuring the unattended-upgrades package..."
 
 # Back up the original configuration
 mv /etc/apt/apt.conf.d/10periodic /etc/apt/apt.conf.d/10periodic.bkp
 mv /etc/apt/apt.conf.d/50unattended-upgrades /etc/apt/apt.conf.d/50unattended-upgrades.bkp
 
-echo "Configuring the unattended-upgrades package..."
-
 # Choose what to upgrade in 10periodic
 cat << EOF > $PERIODIC
 # Update the package list, download, and install available upgrades



More information about the tor-commits mailing list