debian/clevis-udisks2.postinst
raw| 1 | #!/bin/sh |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | case "$1" in |
| 6 | configure) |
| 7 | if ! getent passwd _clevis >/dev/null; then |
| 8 | adduser --quiet --system --group --no-create-home --home /nonexistent --force-badname _clevis |
| 9 | fi |
| 10 | ;; |
| 11 | abort-upgrade | abort-remove | abort-deconfigure) ;; |
| 12 | |
| 13 | *) |
| 14 | echo "postinst called with unknown argument '$1'" >&2 |
| 15 | exit 1 |
| 16 | ;; |
| 17 | esac |
| 18 | |
| 19 | #DEBHELPER# |
| 20 | exit 0 |