Skip to content

Commit 731dd82

Browse files
committed
start partner install conditionally only if file exists
1 parent 997e4ce commit 731dd82

2 files changed

Lines changed: 8 additions & 14 deletions

File tree

bootstrap.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,14 @@ printf '%b\n' "$(tail -3 ${workingDir}/ocp-cluster/.openshift_install.log \
151151
| sed -e 's/^"//' -e 's/"$//' -e 's/\\n/\
152152
/g' -e 's/\\"/"/g')"
153153

154-
#echo -p "Deploying Partner OverLay .. " -n1 -s
155-
# ./partner-install/start.sh ${workingDir}/ocp-cluster/auth/kubeconfig ${global_vars} ${certs_vars} 2>&1 >> ${log}
156-
#echo -e "\e[38;5;10m Done...\033[0m"; date
157-
#
154+
echo -p "Deploying Partner OverLay .. " -n1 -s
155+
if [ -f ./partner-install/start.sh ]; then
156+
./partner-install/start.sh ${workingDir}/ocp-cluster/auth/kubeconfig ${global_vars} ${certs_vars} 2>&1 >> ${log}
157+
else
158+
echo "Partner OverLay not found, skipping"
159+
fi
160+
echo -e "\e[38;5;10m Done...\033[0m"; date
161+
158162
#echo -p "Service Validation and HealthCheck ..TBD " -n1 -s | tee -a ${log}
159163
#echo -e "\e[38;5;10m Done...\033[0m"; date
160164

partner-install/start.sh

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)