#!/bin/sh set -e CTUSER=ct-server CTGROUP=$CTUSER if [ "$1" = configure ]; then getent group $CTGROUP >/dev/null 2>&1 || addgroup --system $CTGROUP getent passwd $CTUSER >/dev/null 2>&1 || adduser --system --home /var/lib/ct/ --no-create-home --disabled-password --ingroup $CTGROUP $CTUSER chown $CTUSER:$CTGROUP /var/lib/ct/ /var/lib/ct/* /var/log/ct/ fi #DEBHELPER#