summaryrefslogtreecommitdiffhomepage
path: root/debian/debug-me-server.postrm
blob: 40069f192bad38f6e3c338cec69783df53298ace (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

set -e

# ensure the server process has been killed before calling userdel(1)
#DEBHELPER#

# on a purge, delete the _debug-me user and group, and the logs dir
if [ "$1" = "purge" ]; then
    userdel _debug-me || true
    # userdel may or may not remove the group (see USERGROUPS_ENAB in
    # userdel(8)), so we make an attempt to delete it
    groupdel _debug-me || true
    rm -rf /var/log/debug-me
fi