aboutsummaryrefslogtreecommitdiff
path: root/packages/debian/postrm
diff options
context:
space:
mode:
Diffstat (limited to 'packages/debian/postrm')
-rwxr-xr-xpackages/debian/postrm13
1 files changed, 9 insertions, 4 deletions
diff --git a/packages/debian/postrm b/packages/debian/postrm
index 0699f2a47..4d2d8c5c0 100755
--- a/packages/debian/postrm
+++ b/packages/debian/postrm
@@ -1,6 +1,11 @@
#!/bin/sh
-rm -rf /run/nDPId /run/nDPIsrvd
-deluser ndpid || true
-deluser ndpisrvd || true
-delgroup ndpisrvd-distributor || true
+if [ "$1" = "remove" -o "$1" = "purge" ]; then
+ rm -rf /run/nDPId /run/nDPIsrvd
+
+ if [ "$1" = "purge" ]; then
+ deluser ndpid || true
+ deluser ndpisrvd || true
+ delgroup ndpisrvd-distributor || true
+ fi
+fi