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 }