summaryrefslogtreecommitdiffstats
path: root/abs/extra/ca-certificates-java/ca-certificates-java.install
blob: f5ce35eb9fd72dacee59d4ba13218fb6b4b08673 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
post_install() {
	if [ ! -f etc/ssl/certs/java/cacerts ]; then
		if which java >/dev/null 2>&1; then
			usr/sbin/init-jks-keystore
		fi
	fi
}

post_upgrade() {
	if [ $(vercmp $2 20110426-2) -lt 0 ]; then
		mv etc/ssl/certs/java/cacerts etc/ssl/certs/java/cacerts.pacsave
	fi
	post_install
}

post_remove() {
	rm -rf etc/ssl/certs/java
}