File: gnokii-cli.postrm

package info (click to toggle)
gnokii 0.6.30+dfsg-1.3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 10,052 kB
  • sloc: ansic: 66,256; sh: 11,369; makefile: 646; sql: 61
file content (23 lines) | stat: -rw-r--r-- 432 bytes parent folder | download | duplicates (5)
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

# Old versions added a gnokii user too, not needed anymore so it can 
# be removed on upgrade too.
if getent passwd gnokii; then
    if [ $1 = "purge" ]; then
        userdel --remove gnokii
    else
        userdel gnokii
    fi
fi

case "$1" in
  remove|purge)
    if getent group gnokii; then
      dpkg-statoverride --quiet --remove /usr/sbin/mgnokiidev || true
      groupdel gnokii
    fi
esac

#DEBHELPER#