| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
set -e |
| 4 |
|
| 5 |
case "$1" in |
| 6 |
configure) |
| 7 |
id -g _gotd > /dev/null 2>&1 || \ |
| 8 |
addgroup --system --force-badname _gotd |
| 9 |
id _gotd > /dev/null 2>&1 || \ |
| 10 |
adduser --system --home /var/lib/gotd/empty \ |
| 11 |
--no-create-home --disabled-password \ |
| 12 |
--gecos "Game of Trees daemon" \ |
| 13 |
--force-badname \ |
| 14 |
--ingroup _gotd _gotd |
| 15 |
;; |
| 16 |
|
| 17 |
abort-upgrade|abort-remove|abort-deconfigure|reconfigure) |
| 18 |
;; |
| 19 |
|
| 20 |
*) |
| 21 |
echo "postinst called with unknown argument \`$1'" >&2 |
| 22 |
exit 1 |
| 23 |
;; |
| 24 |
esac |
| 25 |
|
| 26 |
#DEBHELPER# |
| 27 |
|
| 28 |
exit 0 |