PKGBUILDs/extra/ca-certificates-java/ca-certificates-java.install
2009-10-09 21:23:22 -05:00

20 lines
369 B
Text

post_install() {
if [ ! -f /etc/ssl/certs/java/cacerts ]; then
for jvm in /usr/lib/jvm/java-1.6.0-openjdk /opt/java/jre; do
if [ -x $jvm/bin/keytool ]; then
break
fi
done
if [ -x $jvm/bin/keytool ]; then
/usr/sbin/init-jks-keystore
fi
fi
}
post_upgrade() {
post_install
}
post_remove() {
rm -rf /etc/ssl/certs/java
}