summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Wragg <dpw@lshift.net>2009-11-05 14:43:43 +0000
committerDavid Wragg <dpw@lshift.net>2009-11-05 14:43:43 +0000
commit52c082117d32600f2fdb274394418450626f6ece (patch)
treedd371aae13781bbd5773c01874018594fbcc2fdc
parent0ca1c4e5f2d2b2ba9dffd92986ef916bdec28d62 (diff)
downloadrabbitmq-server-bug21903.tar.gz
Move the pkill to after the check that there is a rabbitmq userbug21903
-rw-r--r--packaging/debs/Debian/debian/postrm7
1 files changed, 3 insertions, 4 deletions
diff --git a/packaging/debs/Debian/debian/postrm b/packaging/debs/Debian/debian/postrm
index 5372ca85..93e63110 100644
--- a/packaging/debs/Debian/debian/postrm
+++ b/packaging/debs/Debian/debian/postrm
@@ -34,11 +34,10 @@ case "$1" in
if [ -d /etc/rabbitmq ]; then
rm -r /etc/rabbitmq
fi
-
- # Stop epmd if run by the rabbitmq user
- pkill -u rabbitmq epmd || :
-
if getent passwd rabbitmq >/dev/null; then
+ # Stop epmd if run by the rabbitmq user
+ pkill -u rabbitmq epmd || :
+
deluser rabbitmq
fi
if getent group rabbitmq >/dev/null; then