File: stenographer-common.postrm

package info (click to toggle)
stenographer 1.0.1-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 19,192 kB
  • sloc: cpp: 2,087; sh: 830; yacc: 257; makefile: 102
file content (18 lines) | stat: -rwxr-xr-x 391 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -e

CERTDIR=/etc/stenographer/certs

if [ "$1" = "purge" ] ; then
    if dpkg-statoverride --list $CERTDIR >/dev/null 2>&1 ; then
        dpkg-statoverride --remove $CERTDIR
    fi
    echo "Removing certificates ($CERTDIR)"
    rm -rf $CERTDIR

    rm -rf /var/lib/stenographer
    deluser  --system stenographer || echo "Could not remove stenographer user."
fi

#DEBHELPER#