Files
2026-12-01 17:45:25 +01:00

18 lines
377 B
Bash

#!/bin/sh
set -e
case "$1" in
configure)
if ! getent group notifications-webhook >/dev/null; then
groupadd --system notifications-webhook
fi
chown root:notifications-webhook /etc/notifications-webhook/config
chmod 0640 /etc/notifications-webhook/config
if command -v py3compile >/dev/null 2>&1; then
py3compile -p notifications-webhook
fi
;;
esac
exit 0