Disable confirm when package installing 53/1453/1
authorcarey.xu <carey.xuhan@huawei.com>
Thu, 10 Sep 2015 06:54:52 +0000 (14:54 +0800)
committercarey.xu <carey.xuhan@huawei.com>
Thu, 10 Sep 2015 06:54:52 +0000 (14:54 +0800)
Change-Id: I7d4ebfa96c3d30f839b68cd9b6de6967e763db13
JIRA: COMPASS-39

build.sh
ci/deploy.sh
deploy.sh
deploy/prepare.sh

index dd4e7a1..058c205 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -17,7 +17,7 @@ function prepare_env()
     for i in createrepo genisoimage curl; do
         sudo $i --version >/dev/null 2>&1
         if [[ $? -ne 0 ]]; then
-            sudo apt-get install $i -y
+            sudo apt-get install  -y --force-yes  $i
         fi
     done
     set -e
index 197bf63..f879f79 100755 (executable)
@@ -2,7 +2,7 @@
 COMPASS_DIR=`cd ${BASH_SOURCE[0]%/*}/../;pwd`
 export COMPASS_DIR
 
-apt-get install screen
+apt-get install -y --force-yes screen
 screen -ls |grep deploy|awk -F. '{print $1}'|xargs kill -9
 screen -wipe
 #screen -dmSL deploy bash $COMPASS_DIR/ci/launch.sh $*
index ec50919..4cfe89e 100755 (executable)
--- a/deploy.sh
+++ b/deploy.sh
@@ -6,7 +6,7 @@ for i in python-cheetah python-yaml screen; do
     if [[ `dpkg-query -l $i` == 0 ]]; then
         continue
     fi
-    sudo apt-get install $i
+    sudo apt-get install -y --force-yes  $i
 done
 
 screen -ls |grep deploy|awk -F. '{print $1}'|xargs kill -9
index 704b540..67fc4b6 100755 (executable)
@@ -19,9 +19,9 @@ function download_iso()
 function prepare_env() {
     export PYTHONPATH=/usr/lib/python2.7/dist-packages:/usr/local/lib/python2.7/dist-packages
     sudo apt-get update -y
-    sudo apt-get install mkisofs bc curl
-    sudo apt-get install git python-pip python-dev -y
-    sudo apt-get install libxslt-dev libxml2-dev libvirt-dev build-essential qemu-utils qemu-kvm libvirt-bin virtinst libmysqld-dev -y
+    sudo apt-get install -y --force-yes mkisofs bc curl
+    sudo apt-get install -y --force-yes git python-pip python-dev
+    sudo apt-get install -y --force-yes libxslt-dev libxml2-dev libvirt-dev build-essential qemu-utils qemu-kvm libvirt-bin virtinst libmysqld-dev
     sudo pip install --upgrade pip
     sudo pip install --upgrade ansible
     sudo pip install --upgrade virtualenv