Movement of jcmd should happen for both portable and non-portable builds

- Related: RHEL-13585
This commit is contained in:
Andrew Hughes 2023-10-14 23:29:55 +01:00
parent 204e3fe067
commit 5575399c13

View File

@ -2219,9 +2219,6 @@ function installjdk() {
cat man/man1/java.1 >> man/man1/%{alt_java_name}.1
popd
# Move jcmd into the jre image (RHEL-12344)
mv ${imagepath}/bin/jcmd ${imagepath}/jre/bin
# Print release information
cat ${imagepath}/release
@ -2256,6 +2253,9 @@ function customisejdk() {
mv ${imagepath}/jre/lib/security/cacerts{,.upstream}
# Install cacerts symlink needed by some apps which hard-code the path
ln -sv %{cacerts_file} ${imagepath}/jre/lib/security
# Move jcmd into the jre image (RHEL-12344)
mv ${imagepath}/bin/jcmd ${imagepath}/jre/bin
fi
}