File tree Expand file tree Collapse file tree
tools/appliance/definitions Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,6 +21,12 @@ ROOTPW=password
2121HOSTNAME=systemvm
2222CLOUDSTACK_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+
2430install_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
9093setup_accounts () {
@@ -223,6 +226,8 @@ do_signature() {
223226
224227begin=$( date +%s)
225228
229+ echo " *************ADDING BACKPORTS********************"
230+ add_backports
226231echo " *************INSTALLING PACKAGES********************"
227232install_packages
228233echo " *************DONE INSTALLING PACKAGES********************"
Original file line number Diff line number Diff line change @@ -21,6 +21,13 @@ ROOTPW=password
2121HOSTNAME=systemvm
2222CLOUDSTACK_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+
2431install_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
8994setup_accounts () {
@@ -222,6 +227,8 @@ do_signature() {
222227
223228begin=$( date +%s)
224229
230+ echo " *************ADDING BACKPORTS********************"
231+ add_backports
225232echo " *************INSTALLING PACKAGES********************"
226233install_packages
227234echo " *************DONE INSTALLING PACKAGES********************"
You can’t perform that action at this time.
0 commit comments