#!/bin/sh set -e if ! getent group codit >/dev/null; then addgroup --system codit >/dev/null fi if ! getent passwd codit >/dev/null; then adduser --system --ingroup codit --home /var/lib/codit --no-create-home --disabled-login --gecos "Codit service user" codit >/dev/null fi chown -R codit:codit /var/lib/codit /var/log/codit 2>/dev/null || true #DEBHELPER# exit 0