debian/hddemux.postinst
raw| 1 | #!/bin/sh |
| 2 | set -e |
| 3 | case $1 in |
| 4 | configure) |
| 5 | if ! getent passwd hddemux >/dev/null ; then |
| 6 | echo "adding hddemux user..." |
| 7 | adduser --quiet --system --no-create-home --group \ |
| 8 | --home "/run/hddemux" \ |
| 9 | --shell '/bin/false' \ |
| 10 | --gecos 'hddemux system user,,,' \ |
| 11 | hddemux |
| 12 | fi |
| 13 | ;; |
| 14 | esac |
| 15 | |
| 16 | #DEBHELPER# |
| 17 | |
| 18 | exit 0 |