From: xudan Date: Fri, 26 May 2017 06:51:25 +0000 (-0400) Subject: Bugfix: Permission denied when generate openrc file X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=17db6723810071b74fdc8617e0b0cbe598919317;p=releng.git Bugfix: Permission denied when generate openrc file 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 --- diff --git a/jjb/dovetail/dovetail-run.sh b/jjb/dovetail/dovetail-run.sh index 5768faf3a..f323a8ab5 100755 --- a/jjb/dovetail/dovetail-run.sh +++ b/jjb/dovetail/dovetail-run.sh @@ -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