summarylogtreecommitdiffstats
path: root/spread-daemon.install
blob: 54db7cb041e7fbd45de680f416ebe881d9ea2c31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
post_install() {
	getent group spread &>/dev/null || groupadd -r spread >/dev/null
	getent passwd spread &>/dev/null || useradd -r -d /var/lib/spread -s /bin/false -g spread spread >/dev/null
	true
}

post_upgrade() {
	post_install
    true
}

pre_remove() {
	systemctl stop spread.service &>/dev/null
	true
}

post_remove() {
	getent passwd spread &>/dev/null && userdel spread >/dev/null
	getent group spread &>/dev/null && groupdel spread >/dev/null
	true
}