summaryrefslogtreecommitdiffstats
path: root/utils/fetch_os_creds.sh
diff options
context:
space:
mode:
authorwutianwei <wutianwei1@huawei.com>2017-07-16 12:14:32 +0800
committerwutianwei <wutianwei1@huawei.com>2017-07-16 17:48:41 +0800
commit3983bb3199ed4d8b9cb3cfc51ac3dd064199b2f3 (patch)
tree8befaf496d43dc418fcb7bff9bc0a42572e4bb01 /utils/fetch_os_creds.sh
parent3f5787e7cd1ee16d549f8dd2d04364d0538afe7f (diff)
[Compass] Move cacert docker copy after chown in fetch_os_creds
sometimes it can't copy os_cacert but copy opnfv_openrc. it cause an issue and didn't execute the command chown. so the opnfv_openrc will belong to root, which will cause errors next time. Change-Id: I2955ba347d399d65c9e5cd566235be06fb7c30af Signed-off-by: wutianwei <wutianwei1@huawei.com>
Diffstat (limited to 'utils/fetch_os_creds.sh')
-rwxr-xr-xutils/fetch_os_creds.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/fetch_os_creds.sh b/utils/fetch_os_creds.sh
index 1ee8b843f..8374edbbd 100755
--- a/utils/fetch_os_creds.sh
+++ b/utils/fetch_os_creds.sh
@@ -157,8 +157,8 @@ elif [ "$installer_type" == "apex" ]; then
elif [ "$installer_type" == "compass" ]; then
if [ "${BRANCH}" == "master" ]; then
sudo docker cp compass-tasks:/opt/openrc $dest_path &> /dev/null
- sudo docker cp compass-tasks:/opt/os_cacert $os_cacert &> /dev/null
sudo chown $(whoami):$(whoami) $dest_path
+ sudo docker cp compass-tasks:/opt/os_cacert $os_cacert &> /dev/null
else
verify_connectivity $installer_ip
controller_ip=$(sshpass -p'root' ssh 2>/dev/null $ssh_options root@${installer_ip} \