This file is indexed.

postrm is in stenographer-common 0.0~git20161206.0.66a8e7e-7.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
#!/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