Files
codit/packaging/debian/codit.postinst
2026-06-07 01:10:07 +09:00

14 lines
370 B
Bash
Executable File

#!/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