Debian repository (backports) now has latest haproxy, re-introduce into systemvm

This commit is contained in:
Chiradeep Vittal 2013-06-07 17:28:53 -07:00
parent 8c9f681f9e
commit cb80ae2440
2 changed files with 20 additions and 8 deletions

View File

@ -21,6 +21,12 @@ ROOTPW=password
HOSTNAME=systemvm
CLOUDSTACK_RELEASE=4.2.0
add_backports () {
sed -i '/backports/d' /etc/apt/sources.list
echo 'deb http://http.us.debian.org/debian wheezy-backports main' >> /etc/apt/sources.list
apt-get update
}
install_packages() {
DEBIAN_FRONTEND=noninteractive
DEBIAN_PRIORITY=critical
@ -81,10 +87,7 @@ install_packages() {
# rm -fr /opt/vmware-tools-distrib
# apt-get -q -y --force-yes purge build-essential
# haproxy. Wheezy doesn't have haproxy, install from backports
#apt-get --no-install-recommends -q -y --force-yes install haproxy
wget http://ftp.us.debian.org/debian/pool/main/h/haproxy/haproxy_1.4.8-1_i386.deb
dpkg -i haproxy_1.4.8-1_i386.deb
apt-get --no-install-recommends -q -y --force-yes install haproxy
}
setup_accounts() {
@ -223,6 +226,8 @@ do_signature() {
begin=$(date +%s)
echo "*************ADDING BACKPORTS********************"
add_backports
echo "*************INSTALLING PACKAGES********************"
install_packages
echo "*************DONE INSTALLING PACKAGES********************"

View File

@ -21,6 +21,13 @@ ROOTPW=password
HOSTNAME=systemvm
CLOUDSTACK_RELEASE=4.2.0
add_backports () {
sed -i '/backports/d' /etc/apt/sources.list
echo 'deb http://http.us.debian.org/debian wheezy-backports main' >> /etc/apt/sources.list
apt-get update
}
install_packages() {
DEBIAN_FRONTEND=noninteractive
DEBIAN_PRIORITY=critical
@ -80,10 +87,8 @@ install_packages() {
# rm -fr /opt/vmware-tools-distrib
# apt-get -q -y --force-yes purge build-essential
# haproxy. Wheezy doesn't have haproxy temporarily, install from backports
#apt-get --no-install-recommends -q -y --force-yes install haproxy
wget http://ftp.us.debian.org/debian/pool/main/h/haproxy/haproxy_1.4.8-1_amd64.deb
dpkg -i haproxy_1.4.8-1_amd64.deb
apt-get --no-install-recommends -q -y --force-yes install haproxy
}
setup_accounts() {
@ -222,6 +227,8 @@ do_signature() {
begin=$(date +%s)
echo "*************ADDING BACKPORTS********************"
add_backports
echo "*************INSTALLING PACKAGES********************"
install_packages
echo "*************DONE INSTALLING PACKAGES********************"