#!/bin/sh
set -e

USERNAME=defguard

if ! id -u ${USERNAME} >/dev/null 2>&1; then
	useradd --system --user-group --no-create-home ${USERNAME}
fi

mkdir -p /etc/defguard
chown -R ${USERNAME}:${USERNAME} /etc/defguard
chmod 750 /etc/defguard
