mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-7143: move add_backports to apt_upgrade.sh
This commit is contained in:
parent
5f3caf6d01
commit
6641fd3a76
|
|
@ -3,6 +3,13 @@
|
|||
export DEBIAN_FRONTEND=noninteractive
|
||||
export DEBIAN_PRIORITY=critical
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
add_backports
|
||||
|
||||
apt-get -q -y --force-yes update
|
||||
apt-get -q -y --force-yes install curl unzip
|
||||
apt-get clean
|
||||
|
|
|
|||
|
|
@ -21,12 +21,6 @@ ROOTPW=password
|
|||
HOSTNAME=systemvm
|
||||
CLOUDSTACK_RELEASE=4.5.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
|
||||
|
|
@ -280,8 +274,6 @@ do_signature() {
|
|||
|
||||
begin=$(date +%s)
|
||||
|
||||
echo "*************ADDING BACKPORTS********************"
|
||||
add_backports
|
||||
echo "*************INSTALLING PACKAGES********************"
|
||||
install_packages
|
||||
echo "*************DONE INSTALLING PACKAGES********************"
|
||||
|
|
|
|||
Loading…
Reference in New Issue