You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: java-components/build-request-processor/src/main/java/com/redhat/hacbs/container/build/preprocessor/AbstractPreprocessor.java
+12-9Lines changed: 12 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -146,15 +146,18 @@ public void run() {
146
146
echo "PATH:$PATH"
147
147
148
148
update-ca-trust
149
-
150
-
# Go through certificates and insert them into the cacerts
151
-
for cert in /etc/pki/ca-trust/source/anchors/*; do
152
-
echo "inserting $cert into java cacerts"
153
-
keytool -import -alias $(basename $cert)-ca \\
154
-
-file $cert \\
155
-
-keystore /etc/pki/java/cacerts \\
156
-
-storepass changeit --noprompt
157
-
done;
149
+
ls -lR /etc/pki || true
150
+
151
+
if [ -d /etc/pki/ca-trust/source/anchors ]; then
152
+
# Go through certificates and insert them into the cacerts
153
+
for cert in /etc/pki/ca-trust/source/anchors/*; do
0 commit comments