aboutsummaryrefslogtreecommitdiffstats
path: root/script/site-specific-install.sh
diff options
context:
space:
mode:
authorGareth Rees <gareth@mysociety.org>2014-08-08 17:22:30 +0100
committerGareth Rees <gareth@mysociety.org>2014-08-13 10:30:07 +0100
commit68e509cbef97f5717c6d4e3aad5d93c589f6cdf1 (patch)
tree68f3b505c2e7301c591c66f1e09e976525b6964c /script/site-specific-install.sh
parent6723bb4dbfa9f23fcafab2c7c9913e943ac1f059 (diff)
Debian specific fixes
- Add wheezy repo to get bundler package which is unavailable in squeeze repo - Get bundler from wheezy repo and de-prioritise all other wheezy packages
Diffstat (limited to 'script/site-specific-install.sh')
-rwxr-xr-xscript/site-specific-install.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/script/site-specific-install.sh b/script/site-specific-install.sh
index 4c8c99aa2..4b707d0dc 100755
--- a/script/site-specific-install.sh
+++ b/script/site-specific-install.sh
@@ -30,6 +30,28 @@ misuse() {
[ -z "$DEVELOPMENT_INSTALL" ] && misuse DEVELOPMENT_INSTALL
[ -z "$BIN_DIRECTORY" ] && misuse BIN_DIRECTORY
+# Debian Squeeze Fixes
+if [ x"$DISTRIBUTION" = x"debian" ] && [ x"$DISTVERSION" = x"squeeze" ]
+then
+ # Add wheezy repo to get bundler
+ cat > /etc/apt/sources.list.d/debian-wheezy.list <<EOF
+deb http://the.earth.li/debian/ wheezy main contrib non-free
+EOF
+
+ # Get bundler from wheezy repo and de-prioritise all other
+ # wheezy packages
+ cat >> /etc/apt/preferences <<EOF
+
+Package: bundler
+Pin: release n=wheezy
+Pin-Priority: 990
+
+Package: *
+Pin: release n=wheezy
+Pin-Priority: 50
+EOF
+fi
+
update_mysociety_apt_sources
if [ ! "$DEVELOPMENT_INSTALL" = true ]; then