]> Cypherpunks.ru repositories - nncp.git/blobdiff - ports/nncp/files/pkg-deinstall.in
Do not touch configuration files and spool directory
[nncp.git] / ports / nncp / files / pkg-deinstall.in
index af0ca734a9e56f3145806835fadde444141580be..0c9f4f1e49d46134be819ef37aed2a3fd17e4e86 100644 (file)
@@ -1,13 +1,9 @@
 #!/bin/sh
 
-if [ "$2" != "POST-DEINSTALL" ]; then
-       exit 0
-fi
+[ "$2" = "POST-DEINSTALL" ] || exit 0
 
 if [ -e %%PREFIX%%/etc/nncp.yaml ]; then
        echo "%%PREFIX%%/etc/nncp.yaml with your private keys is not removed!"
 fi
 
-if [ -e /var/spool/nncp ]; then
-       echo "/var/spool/nncp is not removed!"
-fi
+exec rmdir /var/spool/nncp