Ticket #14036: 0001-Updates-to-ec2-prep-script.patch

File 0001-Updates-to-ec2-prep-script.patch, 2.3 KB (added by jamtur01, 6 years ago)

Patch to ec2-prep.sh

  • ec2-prep.sh

    From 22a95c53998af53ff1c59334ed416ec55f4cc89d Mon Sep 17 00:00:00 2001
    From: James Turnbull <james@lovedthanlost.net>
    Date: Sat, 27 Dec 2014 22:51:56 -0500
    Subject: [PATCH] Updates to ec2-prep script
    
    1. Allowed unauthenticated packages since the sigs on the packages have
    expired.
    
    2. Updated location of experimental packages.
    
    Signed-off-by: James Turnbull <james@lovedthanlost.net>
    ---
     ec2-prep.sh | 15 ++++++++-------
     1 file changed, 8 insertions(+), 7 deletions(-)
    
    diff --git a/ec2-prep.sh b/ec2-prep.sh
    index 90bf140..7d0e211 100644
    a b APT::Periodic::Update-Package-Lists "1"; 
    4343APT::Periodic::Download-Upgradeable-Packages "1";
    4444APT::Periodic::AutocleanInterval "7";
    4545APT::Periodic::Unattended-Upgrade "1";
     46APT::Get::AllowUnauthenticated "true";
    4647EOF
    4748
    4849# Enable automatic package updates in 50unattended-upgrades
    cat << EOF > $UNATTENDED_UPGRADES 
    5051// Automatically upgrade packages from these (origin, archive) pairs
    5152Unattended-Upgrade::Allowed-Origins {
    5253    "Ubuntu $DISTRO";
    53         "Ubuntu $DISTRO-security";
    54         "Ubuntu $DISTRO-updates";
    55         "TorProject $DISTRO";
    56         "TorProject experimental-$DISTRO";
     54    "Ubuntu $DISTRO-security";
     55    "Ubuntu $DISTRO-updates";
     56    "TorProject $DISTRO";
     57    "TorProject tor-experimental-0.2.6.x-$DISTRO";
    5758};
    5859
    5960// Automatically reboot *WITHOUT CONFIRMATION* if the file
    cat << EOF > $IPTABLES_RULES 
    7273:PREROUTING ACCEPT [0:0]
    7374:POSTROUTING ACCEPT [77:6173]
    7475:OUTPUT ACCEPT [77:6173]
    75 -A PREROUTING -i eth0 -p tcp -m tcp --dport 443 -j REDIRECT --to-ports 9001 
     76-A PREROUTING -i eth0 -p tcp -m tcp --dport 443 -j REDIRECT --to-ports 9001
    7677COMMIT
    7778EOF
    7879
    esac 
    107108echo "Adding Tor's repo for $DISTRO...";
    108109cat << EOF >> $SOURCES
    109110deb http://deb.torproject.org/torproject.org $DISTRO main
    110 deb http://deb.torproject.org/torproject.org experimental-$DISTRO main
     111deb http://deb.torproject.org/torproject.org tor-experimental-0.2.6.x-$DISTRO main
    111112EOF
    112113
    113114# Install Tor's GPG key
    apt-key add $GPGKEY 
    157158# Install Tor and arm
    158159echo "Installing Tor...";
    159160apt-get update
    160 apt-get -y install tor tor-geoipdb tor-arm deb.torproject.org-keyring obfsproxy
     161apt-get -y --allow-unauthenticated install tor tor-geoipdb tor-arm deb.torproject.org-keyring obfsproxy
    161162
    162163# Configure Tor
    163164echo "Configuring Tor...";