Skip to content

Commit cb80ae2

Browse files
committed
Debian repository (backports) now has latest haproxy, re-introduce into systemvm
1 parent 8c9f681 commit cb80ae2

2 files changed

Lines changed: 20 additions & 8 deletions

File tree

tools/appliance/definitions/systemvmtemplate/postinstall.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ ROOTPW=password
2121
HOSTNAME=systemvm
2222
CLOUDSTACK_RELEASE=4.2.0
2323

24+
add_backports () {
25+
sed -i '/backports/d' /etc/apt/sources.list
26+
echo 'deb http://http.us.debian.org/debian wheezy-backports main' >> /etc/apt/sources.list
27+
apt-get update
28+
}
29+
2430
install_packages() {
2531
DEBIAN_FRONTEND=noninteractive
2632
DEBIAN_PRIORITY=critical
@@ -81,10 +87,7 @@ install_packages() {
8187
# rm -fr /opt/vmware-tools-distrib
8288
# apt-get -q -y --force-yes purge build-essential
8389

84-
# haproxy. Wheezy doesn't have haproxy, install from backports
85-
#apt-get --no-install-recommends -q -y --force-yes install haproxy
86-
wget http://ftp.us.debian.org/debian/pool/main/h/haproxy/haproxy_1.4.8-1_i386.deb
87-
dpkg -i haproxy_1.4.8-1_i386.deb
90+
apt-get --no-install-recommends -q -y --force-yes install haproxy
8891
}
8992

9093
setup_accounts() {
@@ -223,6 +226,8 @@ do_signature() {
223226

224227
begin=$(date +%s)
225228

229+
echo "*************ADDING BACKPORTS********************"
230+
add_backports
226231
echo "*************INSTALLING PACKAGES********************"
227232
install_packages
228233
echo "*************DONE INSTALLING PACKAGES********************"

tools/appliance/definitions/systemvmtemplate64/postinstall.sh

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ ROOTPW=password
2121
HOSTNAME=systemvm
2222
CLOUDSTACK_RELEASE=4.2.0
2323

24+
add_backports () {
25+
sed -i '/backports/d' /etc/apt/sources.list
26+
echo 'deb http://http.us.debian.org/debian wheezy-backports main' >> /etc/apt/sources.list
27+
apt-get update
28+
}
29+
30+
2431
install_packages() {
2532
DEBIAN_FRONTEND=noninteractive
2633
DEBIAN_PRIORITY=critical
@@ -80,10 +87,8 @@ install_packages() {
8087
# rm -fr /opt/vmware-tools-distrib
8188
# apt-get -q -y --force-yes purge build-essential
8289

83-
# haproxy. Wheezy doesn't have haproxy temporarily, install from backports
84-
#apt-get --no-install-recommends -q -y --force-yes install haproxy
85-
wget http://ftp.us.debian.org/debian/pool/main/h/haproxy/haproxy_1.4.8-1_amd64.deb
86-
dpkg -i haproxy_1.4.8-1_amd64.deb
90+
apt-get --no-install-recommends -q -y --force-yes install haproxy
91+
8792
}
8893

8994
setup_accounts() {
@@ -222,6 +227,8 @@ do_signature() {
222227

223228
begin=$(date +%s)
224229

230+
echo "*************ADDING BACKPORTS********************"
231+
add_backports
225232
echo "*************INSTALLING PACKAGES********************"
226233
install_packages
227234
echo "*************DONE INSTALLING PACKAGES********************"

0 commit comments

Comments
 (0)