#!/bin/sh
set -e

USER="matrix-eno-bot"
case "$1" in
  configure|reconfigure)
    if ! getent passwd "$USER" >/dev/null
    then
      adduser --quiet --system --no-create-home --home "/var/lib/$USER" "$USER"
      chown -R $USER /etc/matrix-eno-bot
      chmod 700 /etc/matrix-eno-bot
    fi
  ;;
esac

#DEBHELPER#

