X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=ports%2Fnncp%2Ffiles%2Fpkg-deinstall.in;h=76a8b973190d4ce015ae00557c69bfc9c9a571e1;hb=0139e8deda4112d2c3dcd52e0ad72162e54caa03;hp=af0ca734a9e56f3145806835fadde444141580be;hpb=5b401cc06b0a9a29f0201c20ead311fb2bff7446;p=nncp.git diff --git a/ports/nncp/files/pkg-deinstall.in b/ports/nncp/files/pkg-deinstall.in index af0ca73..76a8b97 100644 --- a/ports/nncp/files/pkg-deinstall.in +++ b/ports/nncp/files/pkg-deinstall.in @@ -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!" +if [ -e %%PREFIX%%/etc/nncp.hjson ]; then + echo "%%PREFIX%%/etc/nncp.hjson 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