debian/fastnetmon.postinst
raw| 1 | #!/bin/sh |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | case "$1" in |
| 6 | configure) |
| 7 | getent group fastnetmon >/dev/null 2>&1 || addgroup --system fastnetmon |
| 8 | adduser --system --no-create-home --home /nonexistant --quiet fastnetmon --ingroup fastnetmon || true |
| 9 | ;; |
| 10 | |
| 11 | abort-upgrade|abort-remove|abort-deconfigure) |
| 12 | ;; |
| 13 | |
| 14 | *) |
| 15 | echo "postinst called with unknown argument \`$1'" >&2 |
| 16 | exit 1 |
| 17 | ;; |
| 18 | esac |
| 19 | |
| 20 | #DEBHELPER# |
| 21 | |
| 22 | exit 0 |