core/rpcbind/rpcbind.install
Samir Benmendil 55f03839c6 rpcbind: add missing install
no wonder it didn't work, required uid/gid were missing
2014-09-30 05:58:57 +00:00

14 lines
381 B
Plaintext

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
}