#!/bin/sh

set -e

USER="crtmpserver"
GROUP="adm"
HOME="/var/lib/crtmpserver"

if ! getent group $GROUP >/dev/null
then
    addgroup --system $GROUP >/dev/null
fi

if ! getent passwd $USER >/dev/null
then
    adduser \
    --system \
    --disabled-login \
    --ingroup $GROUP \
    --home $HOME \
    --gecos "$USER" \
    --shell /bin/false \
    $USER  >/dev/null
fi

#DEBHELPER#
