From 0a6b851a8d54ed8470185b6cf1dde1794b108b05 Mon Sep 17 00:00:00 2001 From: Honza Pokorny Date: Tue, 2 Apr 2024 11:03:24 -0300 Subject: [PATCH] cleanup: use $OPENSHIFT_INSTALLER path The ocp directory doesn't always have the binary present. For example, the cleanup commands will fail when openshift-installer is built from git. --- ocp_cleanup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ocp_cleanup.sh b/ocp_cleanup.sh index 83d20d9eb..d71a2db54 100755 --- a/ocp_cleanup.sh +++ b/ocp_cleanup.sh @@ -13,8 +13,8 @@ if sudo systemctl is-active fix_certs.timer; then fi if [ -d ${OCP_DIR} ]; then - ${OCP_DIR}/openshift-install --dir ${OCP_DIR} --log-level=debug destroy bootstrap - ${OCP_DIR}/openshift-install --dir ${OCP_DIR} --log-level=debug destroy cluster + $OPENSHIFT_INSTALLER --dir ${OCP_DIR} --log-level=debug destroy bootstrap + $OPENSHIFT_INSTALLER --dir ${OCP_DIR} --log-level=debug destroy cluster rm -rf ${OCP_DIR} fi