File: pglistener.postrm

package info (click to toggle)
pglistener 4
  • links: PTS
  • area: main
  • in suites: buster, sid, stretch
  • size: 224 kB
  • ctags: 132
  • sloc: python: 594; perl: 364; sh: 120; sql: 89; makefile: 2
file content (23 lines) | stat: -rw-r--r-- 430 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#! /bin/sh

set -e

case "$1" in
    remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
        ;;
    purge)
        getent passwd pglisten >/dev/null && \
        if [ -x /usr/sbin/deluser ]; then
            deluser --quiet --system pglisten
        fi
        rm -rf /var/lib/pglistener
        ;;
    *)
        echo "postrm called with unknown argument \`$1'" >&2
        exit 1
esac

#DEBHELPER#

exit 0