File: clevis-udisks2.postinst

package info (click to toggle)
clevis 16-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 844 kB
  • sloc: sh: 4,328; ansic: 1,280; makefile: 8
file content (20 lines) | stat: -rw-r--r-- 364 bytes parent folder | download
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