File: errbot.postinst

package info (click to toggle)
errbot 6.1.7+ds-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 3,712 kB
  • sloc: python: 13,831; makefile: 164; sh: 97
file content (29 lines) | stat: -rw-r--r-- 495 bytes parent folder | download
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#