File: gpsd.postrm

package info (click to toggle)
gpsd 3.22-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 27,508 kB
  • sloc: ansic: 57,097; xml: 15,491; python: 12,716; cpp: 836; sh: 699; php: 210; makefile: 188; perl: 111; javascript: 26
file content (31 lines) | stat: -rw-r--r-- 548 bytes parent folder | download | duplicates (4)
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
# postrm script for gpsd

set -e

case "$1" in
    purge)
	[ ! -f /etc/default/gpsd ] || rm /etc/default/gpsd

        if [ -x "$(command -v deluser)" ]; then
            deluser --quiet --system gpsd > /dev/null || true
        else
            echo >&2 "not removing gpsd system account because deluser command was not found"
        fi

        rm -rf /run/gpsd

    ;;

    remove|upgrade|failed-upgrade|disappear)
    ;;

    *)
        echo "postrm called with unknown argument \`$1'" >&2
        exit 1

esac

#DEBHELPER#

exit 0