blob: 56dd30457a1cbb091925c92675c57b7ce6c20b4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
post_install() {
getent group flume &>/dev/null || groupadd -r flume >/dev/null
getent passwd flume &>/dev/null || useradd -r -g flume -d /etc/flume flume >/dev/null
chown -R flume:flume /etc/flume-ng
true
}
post_upgrade() {
post_install
}
post_remove() {
getent passwd flume &>/dev/null && userdel flume >/dev/null
getent group flume &>/dev/null && groupdel flume >/dev/null
true
}
|