File: keyd.postrm

package info (click to toggle)
keyd 2.5.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,524 kB
  • sloc: ansic: 5,206; python: 1,121; makefile: 114; javascript: 105; perl: 95; sh: 80
file content (16 lines) | stat: -rw-r--r-- 412 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
set -e

#DEBHELPER#

if [ "$1" = purge ]; then
    # The passwd package is `Priority: required` and is in `Depends`, but the package might be
    # uninstalled before keyd in environments like a piuparts chroot.
    if command -v groupdel >/dev/null; then
        if getent group keyd >/dev/null; then
            groupdel keyd
        elif [ "$?" -ne 2 ]; then
            exit 1
        fi
    fi
fi