]> Cypherpunks.ru repositories - nncp.git/blobdiff - ports/nncp/files/pkg-deinstall.in
Replace YAML with Hjson
[nncp.git] / ports / nncp / files / pkg-deinstall.in
index af0ca734a9e56f3145806835fadde444141580be..76a8b973190d4ce015ae00557c69bfc9c9a571e1 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!"
+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