clevis-udisks2.postinst 405 B

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