Skip to content

Commit 4c88e37

Browse files
committed
fix unbound
1 parent 391c74d commit 4c88e37

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

jenkins/master/ods-run.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,15 @@
44
# then delegates to the original run script of the base image.
55
set -ue
66

7+
JAVA_INSTALLED_PKGS_LOGS="/tmp/java_installed_pkgs.log"
8+
79
echo "Deleting .kube to avoid weird caching issues (see https://github.com/opendevstack/ods-core/issues/473)"
810
rm -rf $HOME/.kube || true
911

10-
echo "Verifying if Java 17 is installed ..."
12+
echo "Removing any existing Java package logs ..."
13+
rm -fv ${JAVA_INSTALLED_PKGS_LOGS}
14+
15+
echo "Verifying if Java is installed ..."
1116
yum list installed | grep -i "\(java\|jre\)" | tee -a ${JAVA_INSTALLED_PKGS_LOGS}
1217
if grep -qi "java-17" ${JAVA_INSTALLED_PKGS_LOGS}; then
1318
echo "Java 17 is installed. Proceeding to remove other versions..."
@@ -38,8 +43,11 @@ if grep -qi "java-17" ${JAVA_INSTALLED_PKGS_LOGS}; then
3843

3944
echo "Cleaning up yum cache ..."
4045
yum clean all
46+
47+
echo "Removing temporary Java package logs ..."
48+
rm -fv ${JAVA_INSTALLED_PKGS_LOGS}
4149
else
42-
echo "Java 17 is not installed. Skipping removal of other versions."
50+
echo "No Java version is installed. Skipping removal of other versions."
4351
fi
4452

4553
# Openshift default CA. See https://docs.openshift.com/container-platform/3.11/dev_guide/secrets.html#service-serving-certificate-secrets

0 commit comments

Comments
 (0)