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