PKGBUILDs/extra/ca-certificates-java/ca-certificates-java.install

21 lines
369 B
Text
Raw Normal View History

2009-10-10 02:23:22 +00:00
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
}