aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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