Changeset 8569


Ignore:
Timestamp:
Mar 29, 2019, 9:52:49 AM (5 months ago)
Author:
hectorgh
Message:

fixed postinst

File:
1 edited

Legend:

Unmodified
Added
Removed
  • n4d/trunk/fuentes/debian/n4d.postinst

    r8568 r8569  
    1616        if dpkg --compare-versions "$2" lt 0.116.2; then
    1717                # lets force certificate regeneration
    18                 if [ -e "$CERTPATH/n4dcert.pem" ]; then
    19                         rm -rf "$CERTPATH/n4dcert.pem" || true
     18                CERTFILE="/etc/n4d/cert/n4dcert.pem"
     19                if [ -e "$CERTFILE" ]; then
     20                        echo "[N4D] Deleting old certificate..."
     21                        rm -rf /etc/n4d/cert/n4d* || true
    2022                fi
    2123        fi
Note: See TracChangeset for help on using the changeset viewer.