diff options
author | Gareth Rees <gareth@mysociety.org> | 2014-08-13 10:00:45 +0100 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2014-08-18 13:38:29 +0100 |
commit | d0df86d597ec95e7b6b7e32af0932563c4c1406f (patch) | |
tree | 6904ee98a0bd81dda4d23319a05e064bbb6e87d8 /script/site-specific-install.sh | |
parent | 4be85fc8d2b7f4950b71618c9769ac67d3df9e51 (diff) |
Precise specific fixes
- Get bundler and pdftk from raring repo and de-prioritise all other
raring packages
Diffstat (limited to 'script/site-specific-install.sh')
-rwxr-xr-x | script/site-specific-install.sh | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/script/site-specific-install.sh b/script/site-specific-install.sh index 4b707d0dc..92809cf85 100755 --- a/script/site-specific-install.sh +++ b/script/site-specific-install.sh @@ -30,6 +30,8 @@ misuse() { [ -z "$DEVELOPMENT_INSTALL" ] && misuse DEVELOPMENT_INSTALL [ -z "$BIN_DIRECTORY" ] && misuse BIN_DIRECTORY +update_mysociety_apt_sources + # Debian Squeeze Fixes if [ x"$DISTRIBUTION" = x"debian" ] && [ x"$DISTVERSION" = x"squeeze" ] then @@ -50,9 +52,39 @@ Package: * Pin: release n=wheezy Pin-Priority: 50 EOF + +apt-get -qq update fi -update_mysociety_apt_sources +# Ubuntu Precise Fixes +if [ x"$DISTRIBUTION" = x"ubuntu" ] && [ x"$DISTVERSION" = x"precise" ] +then + cat > /etc/apt/sources.list.d/ubuntu-trusty.list <<EOF +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/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 + +apt-get -qq update +fi + +apt-get -y update if [ ! "$DEVELOPMENT_INSTALL" = true ]; then install_nginx |