diff options
author | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2009-02-28 13:13:14 -0500 |
---|---|---|
committer | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2009-02-28 13:13:14 -0500 |
commit | 6a8ca11c71b55becac131b58caa27e8d69696587 (patch) | |
tree | 48835c4252c40f46ae2582aeff334e9953606de0 /packaging/debian/monkeysphere.postrm | |
parent | 90e182fac0303b6a5a9c9da92446b366b2bdadd7 (diff) | |
parent | 54abd85dc6b4c54a99644eec21ce51635012ea8b (diff) |
Merge commit 'jrollins/master'
Diffstat (limited to 'packaging/debian/monkeysphere.postrm')
-rwxr-xr-x | packaging/debian/monkeysphere.postrm | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/packaging/debian/monkeysphere.postrm b/packaging/debian/monkeysphere.postrm index 79f7245..e70a1b1 100755 --- a/packaging/debian/monkeysphere.postrm +++ b/packaging/debian/monkeysphere.postrm @@ -7,8 +7,13 @@ case $1 in purge) - echo "removing monkeysphere user..." - userdel monkeysphere > /dev/null || true + # delete monkeysphere user + # http://wiki.debian.org/AccountHandlingInMaintainerScripts + if type deluser >/dev/null 2>&1; then + deluser --quiet --system monkeysphere > /dev/null || true + else + echo >&2 "not removing monkeysphere system account because deluser command was not found" + fi ;; esac |