22 lines
628 B
Bash
22 lines
628 B
Bash
#!/bin/bash
|
|
|
|
#!/bin/sh
|
|
## postinstall
|
|
|
|
pathToScript=$0
|
|
pathToPackage=$1
|
|
targetLocation=$2
|
|
targetVolume=$3
|
|
|
|
cert1=/private/tmp/ING-DiBa\ CAs_Gen3_Chain\(1\)/BASE64\ Encoded/ING-DiBa\ Issuing\ CA\(1\).cer
|
|
cert2=/private/tmp/ING-DiBa\ CAs_Gen3_Chain\(1\)/BASE64\ Encoded/ING-DiBa\ Offline\ Root\ CA\(1\).cer
|
|
certstore=$(mdfind -onlyin "/Library/Java/JavaVirtualMachines" -name cacerts)
|
|
|
|
for i in $certstore
|
|
do
|
|
/usr/bin/keytool -importcert -keystore "$i" -storepass changeit -noprompt -file "$cert1"
|
|
/usr/bin/keytool -importcert -keystore "$i" -storepass changeit -noprompt -file "$cert2"
|
|
done
|
|
|
|
exit 0 ## Success
|
|
exit 1 ## Failure |