scripts/install_xtuple: add support for wheezy using wheezy-backports
authorDaniel Pocock <daniel@pocock.pro>
Sat, 3 May 2014 13:48:59 +0000 (15:48 +0200)
committerDaniel Pocock <daniel@pocock.pro>
Sat, 3 May 2014 13:48:59 +0000 (15:48 +0200)
scripts/install_xtuple.sh

index e72d784..0a45f39 100644 (file)
@@ -131,6 +131,11 @@ fi
 
 install_packages() {
   log "installing debian packages..."
+  if [ "${DEBDIST}" = "wheezy" ];
+  then
+    # for Debian wheezy (7.x) we need some things from the wheezy-backports
+    sudo add-apt-repository -y "deb http://ftp.debian.org/debian wheezy-backports main"
+  fi
   sudo add-apt-repository -y "deb http://apt.postgresql.org/pub/repos/apt/ ${DEBDIST}-pgdg main"
   sudo wget -qO- https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
   sudo apt-get -qq update 2>&1 | tee -a $LOG_FILE