summaryrefslogtreecommitdiffstats
path: root/prepare.sh
diff options
context:
space:
mode:
authorHarry Huang <huangxiangyu5@huawei.com>2017-03-27 11:53:39 +0800
committerYingjun Li <yingjun.li@huawei.com>2017-03-27 06:54:47 +0000
commit5a9cd98783bf7547cb56b3da84521315d3354f21 (patch)
tree6c96bc8d7d3666ca6509d73285f69dbb95a29ddb /prepare.sh
parenta10160eb86f804a9daafdf156812c6b90f1b01a3 (diff)
run without sudo
Jenkins can't remove some dir generate by sudo and leads to CI error for following tasks. Change codes to run ./opera_launch.sh without sudo Change-Id: Iaebd7e1fbdf413a91cc55c77e1b5c6915cfc86d6 Signed-off-by: Harry Huang <huangxiangyu5@huawei.com> (cherry picked from commit 7ee5c95db62d13d860d51974aa9c0a14404cee56)
Diffstat (limited to 'prepare.sh')
-rwxr-xr-xprepare.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/prepare.sh b/prepare.sh
index 9cd8f62..a5cd5e8 100755
--- a/prepare.sh
+++ b/prepare.sh
@@ -28,10 +28,10 @@ function package_prepare()
sudo yum install -y wget python-pip sshpass figlet curl net-tools
fi
sudo pip install pyyaml
- docker version &>/dev/null
+ sudo docker version &>/dev/null
if [[ $? != 0 ]];then
- curl -sSL https://experimental.docker.com/ | sh
- service docker start
+ sudo curl -sSL https://experimental.docker.com/ | sh
+ sudo service docker start
fi
}