summaryrefslogtreecommitdiff
path: root/ec2-set-apt-sources.py
diff options
context:
space:
mode:
Diffstat (limited to 'ec2-set-apt-sources.py')
-rwxr-xr-xec2-set-apt-sources.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/ec2-set-apt-sources.py b/ec2-set-apt-sources.py
index 2709d6ab..f6549dc5 100755
--- a/ec2-set-apt-sources.py
+++ b/ec2-set-apt-sources.py
@@ -42,8 +42,10 @@ f = open("/var/run/ec2/sources.list", "w")
f.write('deb %s %s main universe\n' % (archive,distro))
f.write('deb-src %s %s main universe\n' % (archive,distro))
f.write('deb %s %s-updates main universe\n' % (archive,distro))
-f.write('deb http://security.ubuntu.com/ubuntu intrepid-security main universe\n')
-f.write('deb-src http://security.ubuntu.com/ubuntu intrepid-security main universe\n')
+f.write('deb http://security.ubuntu.com/ubuntu %s-security main universe\n' %(distro))
+f.write('deb-src http://security.ubuntu.com/ubuntu %s-security main universe\n', %(distro))
+f.write('deb http://ppa.launchpad.net/ubuntu-on-ec2/ppa/ubuntu %s main\n' %(distro))
+f.write('deb-src http://ppa.launchpad.net/ubuntu-on-ec2/ppa/ubuntu %s main\n' %(distro))
f.close()
os.system("mv /etc/apt/sources.list /etc/apt/sources.list-ec2-init")
os.system("ln -s /var/run/ec2/sources.list /etc/apt/sources.list")