Bugfix: Permission denied when generate openrc file 91/35391/1
authorxudan <xudan16@huawei.com>
Fri, 26 May 2017 06:51:25 +0000 (02:51 -0400)
committerxudan <xudan16@huawei.com>
Fri, 26 May 2017 06:51:25 +0000 (02:51 -0400)
JIRA: DOVETAIL-438

Error log:
touch: cannot touch ‘/home/opnfv/cvp/pre_config/env_config.sh’: Permission denied
fetch_os_creds.error: Cannot create the file specified. Check that the path
is correct and run the script again.

Change-Id: I46d1edacec58226bc6b5d6a88ab7b5b6cdea17f5
Signed-off-by: xudan <xudan16@huawei.com>
jjb/dovetail/dovetail-run.sh

index 5768faf..f323a8a 100755 (executable)
@@ -47,7 +47,7 @@ releng_repo=${WORKSPACE}/releng
 git clone https://gerrit.opnfv.org/gerrit/releng ${releng_repo} >/dev/null
 
 if [[ ${INSTALLER_TYPE} != 'joid' ]]; then
-    ${releng_repo}/utils/fetch_os_creds.sh -d ${OPENRC} -i ${INSTALLER_TYPE} -a ${INSTALLER_IP} >${redirect}
+    sudo /bin/bash ${releng_repo}/utils/fetch_os_creds.sh -d ${OPENRC} -i ${INSTALLER_TYPE} -a ${INSTALLER_IP} >${redirect}
 fi
 
 if [[ -f $OPENRC ]]; then