DEB packaging of Comarch Crypto Provider from ePUAP
Jacek Kowalski
2019-09-25 b649e084029d34916dc3ff2c12ecc2e5ce5ccc16
commit | author | age
8be2bb 1 #!/bin/sh
JK 2
3 if [ "$1" = "remove" ]
4 then
5
6     INSTALLDIR="/usr/local/ComarchCryptoProvider"
7     
8     echo "Deleting generated certificates..."
9     
10     for i in "${INSTALLDIR}/certs/CCP-key-server.pem" \
11         "${INSTALLDIR}/certs/CCP-cert-server.pem" \
12         "${INSTALLDIR}/certs/CCP-req-server.pem" \
13         "${INSTALLDIR}/certs/CCP-cert-CA.cer" \
14         "${INSTALLDIR}/certs/CCP-cert-CA.pem" \
15         "${INSTALLDIR}/certs/CCP-cert-CA.srl" \
16         "${INSTALLDIR}/certs/CCP-key-CA.pem" \
17         "/usr/local/share/ca-certificates/CCP-cert-CA.crt"
18     do
19         [ -f "$i"  ] && rm -f "$i"
20     done
21     
22     dpkg-trigger update-ca-certificates
23
24 fi
25
26 #DEBHELPER#