aboutsummaryrefslogtreecommitdiff
path: root/debian/taler-auditor.postrm
blob: 639e3241e8645ddd2283ec1c1def8385775d746f (plain)
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
#!/bin/sh

set -e

if [ -f /usr/share/debconf/confmodule ]; then
  . /usr/share/debconf/confmodule
fi

_USERNAME=taler-auditor-httpd
_GROUPNAME=taler-auditor-httpd

case "${1}" in
purge)
    dpkg-statoverride --remove \
      /etc/taler/secrets/auditor-db.secret.conf || true
    deluser --system --quiet ${_USERNAME} || true
    delgroup --only-if-empty --quiet ${_GROUPNAME} || true
    ;;

remove | upgrade | failed-upgrade | abort-install | abort-upgrade | disappear) ;;
*)
  echo "postrm called with unknown argument \`${1}'" >&2
  exit 1
  ;;
esac

#DEBHELPER#

exit 0