aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2014-08-15 15:53:40 +0100
committerGareth Rees <gareth@mysociety.org>2014-08-18 13:38:30 +0100
commitf81cb5161f91eb40af88e7f5a1871a10e632cdf2 (patch)
tree6f4a21bce20c89274cc54aa23b58fd9d46d0af01
parentd0df86d597ec95e7b6b7e32af0932563c4c1406f (diff)
Use our own Launchpad Ubuntu repo to get pdftk
-rwxr-xr-xscript/site-specific-install.sh17
1 files changed, 11 insertions, 6 deletions
diff --git a/script/site-specific-install.sh b/script/site-specific-install.sh
index 92809cf85..c113b6efb 100755
--- a/script/site-specific-install.sh
+++ b/script/site-specific-install.sh
@@ -64,23 +64,28 @@ deb http://archive.ubuntu.com/ubuntu/ trusty universe
deb-src http://archive.ubuntu.com/ubuntu/ trusty universe
EOF
- # Get bundler and pdftk from raring and de-prioritise all other
- # raring packages
+ cat > /etc/apt/sources.list.d/mysociety-launchpad.list <<EOF
+deb http://ppa.launchpad.net/mysociety/alaveteli/ubuntu precise main
+deb-src http://ppa.launchpad.net/mysociety/alaveteli/ubuntu precise main
+EOF
+
+ # Get bundler from trusty and de-prioritise all other
+ # trusty packages
cat >> /etc/apt/preferences <<EOF
Package: ruby-bundler
Pin: release n=trusty
Pin-Priority: 990
-Package: pdftk
-Pin: release n=squeeze
-Pin-Priority: 990
-
Package: *
Pin: release n=trusty
Pin-Priority: 50
EOF
+# Get the key for the mysociety ubuntu alaveteli repo
+apt-get install python-software-properties
+add-apt-repository -y ppa:mysociety/alaveteli
+
apt-get -qq update
fi