#!/bin/sh
# postinst script for biboumi

set -e

NAME=biboumi
ACCOUNTNAME=_$NAME
ACCOUNTHOME=/var/lib/$NAME
GECOS="Biboumi XMPP gateway"

case "$1" in
  configure)
	if ! getent passwd $ACCOUNTNAME >/dev/null 2>&1; then
		adduser --force-badname --system --group \
			 --home $ACCOUNTHOME \
			--gecos "$GECOS" --group --disabled-password \
			--quiet $ACCOUNTNAME
	fi
	;;
esac

#DEBHELPER#
