blob: 3b5b7dc7f13a4fef287dbae9db8b3978fc292f39 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
post_install() {
getent group rpc &>/dev/null || groupadd -r -g 32 rpc >/dev/null
getent passwd rpc &>/dev/null || useradd -r -u 32 -g rpc -d /dev/null -s /bin/false -c "Rpcbind Daemon" rpc >/dev/null
}
post_upgrade() {
post_install
}
post_remove() {
getent passwd rpc &>/dev/null && userdel rpc >/dev/null
getent group rpc &>/dev/null && groupdel rpc >/dev/null
return 0
}
|