File: clevis-udisks2.postinst

package info (click to toggle)
clevis 19-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 884 kB
  • sloc: sh: 4,675; ansic: 1,281; makefile: 8
file content (20 lines) | stat: -rw-r--r-- 405 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -e

case "$1" in
    configure)
        if ! getent passwd _clevis >/dev/null; then
            adduser --quiet --system --group --no-create-home --home /nonexistent --force-badname _clevis
        fi
        ;;
    abort-upgrade | abort-remove | abort-deconfigure) ;;

    *)
        echo "postinst called with unknown argument '$1'" >&2
        exit 1
        ;;
esac

#DEBHELPER#
exit 0