1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
#!/bin/sh
set -e
case "$1" in
configure)
if ! id errbot >/dev/null 2>&1; then
adduser --system --group --gecos "Errbot Chat Bot" \
--no-create-home --home /var/lib/errbot errbot > /dev/null
fi
chmod 0750 /var/lib/errbot
chown errbot /var/lib/errbot
chown errbot /var/lib/errbot/data
chown errbot /var/lib/errbot/plugins
;;
abort-upgrade|abort-remove|abort-deconfigure)
exit 0
;;
*)
echo "postinst called with unknown argument $1"
exit 1
;;
esac
#DEBHELPER#
|