#!/bin/sh
# The service runs as its own user, in Asterisk's group: it writes Asterisk's
# configuration and reads the recordings, and nothing else on the machine.
addgroup -S nuxpbx 2>/dev/null
adduser -S -D -H -h /var/lib/nuxpbx -s /sbin/nologin -G nuxpbx -g nuxpbx nuxpbx 2>/dev/null
addgroup nuxpbx asterisk 2>/dev/null
exit 0
