debian/hexagonrpcd.postinst
raw| 1 | #!/bin/sh |
| 2 | set -e |
| 3 | |
| 4 | case "$1" in |
| 5 | configure) |
| 6 | adduser --system --group --home /run/fastrpc/ fastrpc |
| 7 | |
| 8 | # we ship udev rules, so trigger an update |
| 9 | udevadm trigger "--sysname-match=fastrpc-*" --subsystem-match=misc --action=change |
| 10 | ;; |
| 11 | |
| 12 | abort-upgrade|abort-remove|abort-deconfigure) |
| 13 | ;; |
| 14 | |
| 15 | *) |
| 16 | echo "postinst called with unknown argument \`$1'" >&2 |
| 17 | exit 1 |
| 18 | ;; |
| 19 | esac |
| 20 | |
| 21 | |
| 22 | #DEBHELPER# |
| 23 | |
| 24 | exit 0 |