#!/bin/sh
#
# Post-installation script for Onionprobe
#

# Parameters
# User name should begin with an underscore, see
# https://www.debian.org/doc/debian-policy/ch-opersys.html#introduction
NAME="onionprobe"
USERNAME="_$NAME"

# Ensure that the scripts abort in case of any errors
set -e

# Ensure a dedicated user for running the system-wide service
# Needs --force-badname to allow user names with underscores
adduser --home /var/lib/$NAME --system --group --force-badname $USERNAME

# Include automatic generated code by debhelper(7)
#DEBHELPER#
