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>
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