]> git.donarmstrong.com Git - unscd.git/blob - debian/unscd.postinst
ignore unscd build directory
[unscd.git] / debian / unscd.postinst
1 set -e
2
3 case "$1" in
4     configure)
5         # Create the unscd user
6             if [ -x /usr/sbin/adduser ] && [ -x /usr/bin/getent ] && [ -x /usr/sbin/addgroup ]; then
7                 if ! getent group unscd >/dev/null 2>&1; then
8                         addgroup --system unscd;
9                 fi;
10                 if ! id -u unscd >/dev/null 2>&1; then
11                         adduser --quiet --system --ingroup unscd --no-create-home --home /var/lib/unscd unscd;
12                 fi;
13             fi;
14             ;;
15     *)
16             # do nothing
17             ;;
18 esac
19
20 ###DEBHELPER###
21
22 exit 0;