summaryrefslogtreecommitdiff
path: root/autoscripts
diff options
context:
space:
mode:
authorjoey <joey>2000-11-06 01:05:13 +0000
committerjoey <joey>2000-11-06 01:05:13 +0000
commit86f7ae9de59a682f596bff2fbaae1b7f05b82370 (patch)
treead09e01dbd496d03a5c848c5324fb9608dc1d1ab /autoscripts
parent47587e5a2f0fe23af3da54bf8621643881f56bdc (diff)
r382: * dh_suidregister: do not unregister on purge, since it will have already
been unregistered then, and a warning will result.
Diffstat (limited to 'autoscripts')
-rw-r--r--autoscripts/postrm-suid3
1 files changed, 2 insertions, 1 deletions
diff --git a/autoscripts/postrm-suid b/autoscripts/postrm-suid
index 9712d25..340736a 100644
--- a/autoscripts/postrm-suid
+++ b/autoscripts/postrm-suid
@@ -1,3 +1,4 @@
-if [ -e /etc/suid.conf -a -x /usr/sbin/suidunregister ]; then
+if [ "$1" = remove -a -e /etc/suid.conf ] && \
+ command -v suidunregister >/dev/null 2>&1; then
suidunregister -s #PACKAGE# /#FILE#
fi