diff options
author | Harry Huang <huangxiangyu5@huawei.com> | 2017-03-27 11:53:39 +0800 |
---|---|---|
committer | Yingjun Li <yingjun.li@huawei.com> | 2017-03-27 06:54:47 +0000 |
commit | 5a9cd98783bf7547cb56b3da84521315d3354f21 (patch) | |
tree | 6c96bc8d7d3666ca6509d73285f69dbb95a29ddb /prepare.sh | |
parent | a10160eb86f804a9daafdf156812c6b90f1b01a3 (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-x | prepare.sh | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 } |