summaryrefslogtreecommitdiffstats
path: root/abs/extra/ca-certificates-java/ca-certificates-java.install
blob: 3cbcb1643c5f8f9bc8321006b7eda5a987671ead (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/bin/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
}