File: debug-me-server.postrm

package info (click to toggle)
debug-me 1.20221231-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 716 kB
  • sloc: haskell: 3,151; sh: 115; makefile: 86
file content (15 lines) | stat: -rwxr-xr-x 415 bytes parent folder | download | duplicates (4)
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