Files
bongo/debian/bongo.postinst
Mario Fetka c8b250e9b0
Debian Trixie package bundle / packages (push) Successful in 22m11s
Implement durable C local mail submission
2026-07-24 11:05:19 +02:00

24 lines
597 B
Bash
Executable File

#!/bin/sh
set -e
if [ "$1" = configure ]; then
if command -v systemd-sysusers >/dev/null 2>&1; then
systemd-sysusers bongo-user.conf
else
if ! getent group bongopostdrop >/dev/null 2>&1; then
addgroup --system bongopostdrop
fi
if ! getent passwd bongo >/dev/null 2>&1; then
adduser --system --group --home /var/lib/bongo \
--no-create-home bongo
fi
adduser bongo bongopostdrop
fi
chown root:bongopostdrop /usr/sbin/bongopostdrop
chmod 2755 /usr/sbin/bongopostdrop
fi
#DEBHELPER#
exit 0