summarylogtreecommitdiffstats
path: root/ladvd.install
blob: 33d09038450c5f1f34819b51a87caf083d36a22d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
post_update() {
	if getent group ladvd &>/dev/null; then
		usermod -R ladvd ladvd >/dev/null
		groupdel ladvd >/dev/null
	fi
}

post_install() {
	if ! getent passwd ladvd &>/dev/null; then
		useradd -r -u 142 -d /run/ladvd -s /bin/false ladvd >/dev/null
	fi
}

post_remove() {
	if getent passwd ladvd &>/dev/null; then
		userdel ladvd >/dev/null
	fi
	if getent group ladvd &>/dev/null; then
		groupdel ladvd >/dev/null
	fi
}