#!/bin/sh
set -e

USER="matrix-eno-bot"
case "$1" in
  configure|reconfigure)
    if ! getent passwd "$USER" >/dev/null ; then
      useradd -U -r -d "/var/lib/$USER" "$USER"
      install -Zd -m 700 -o matrix-eno-bot -gmatrix-eno-bot /var/lib/matrix-eno-bot
      chown -R $USER /etc/matrix-eno-bot
      chmod 700 /etc/matrix-eno-bot
    fi
  ;;
esac

#DEBHELPER#

