This file is indexed.

postrm is in piuparts-master 0.64ubuntu1.

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
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
set -e

user=piupartsm

if [ "$1" = "purge" ] ; then

    rm -rf /var/lib/piuparts/$user

    if [ -d /var/lib/piuparts/htdocs ] ; then
        rm -rf /var/lib/piuparts/htdocs
    fi

    if [ -d /var/lib/piuparts/backup ] ; then
        rm -rf /var/lib/piuparts/backup
    fi

    if [ -d /var/lib/piuparts/master ] ; then
        rm -rf /var/lib/piuparts/master
    fi

    rmdir /var/lib/piuparts 2>/dev/null || true

    rmdir /etc/piuparts 2>/dev/null || true

fi


# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/apache2/conf.d/piuparts.apache /etc/apache2/conf-available/piuparts-master.conf 0.58~ -- "$@"
# End automatically added section