summarylogtreecommitdiffstats
path: root/aurbs.install
blob: d2ce2450e5426de9bf07e77f1094646de9434918 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
post_install() {
	post_upgrade $1
	echo ">>> Find a sample lighttp config at:"
	echo ">>> /usr/share/doc/aurbs/lighttpd.conf.sample"
}

post_upgrade() {
	if ! getent passwd aurbs >/dev/null; then
		useradd --system -c 'aurbs daemon user' -g daemon -d /var/cache/aurbs -s /bin/bash aurbs
	fi
	chown -R aurbs: /var/cache/aurbs/ccache/*
	chown -R aurbs: /var/cache/aurbs/build/*/*
}

post_remove() {
	if getent passwd aurbs >/dev/null; then
		userdel aurbs
	fi
}