blob: 8f6d67f8195a1bf0fd7d3992c8a1890dfa19940d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/sh
#
# $FreeBSD$
LOCALBASE=%%LOCALBASE%%
# This script runs during post-install
if [ "x${2}" != "xPOST-INSTALL" ]; then
exit 0
fi
# Ensure all JDKs and JREs are installed
for jvm in "${LOCALBASE}"/*jdk* "${LOCALBASE}"/*jre*; do
if [ -x "${jvm}/bin/java" ]; then
"${PKG_PREFIX}"/bin/registervm "${jvm}/bin/java"
fi
done
# Ensure all VMs are configured correctly
"${PKG_PREFIX}"/bin/checkvms
|