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