DEB packaging of Comarch Crypto Provider from ePUAP
Jacek Kowalski
2017-07-12 8be2bb44e690fa6ab0f62dacb5cfa5357ac1af43
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#