aboutsummaryrefslogtreecommitdiffstats
path: root/main/rpcbind/rpcbind.pre-install
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-11-01 14:46:00 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2013-11-01 14:47:27 +0100
commit7467d292063c766cc80129520e9ca22c9c096705 (patch)
tree7998d7170a87be4c8628d40cac18c215e23c5bfa /main/rpcbind/rpcbind.pre-install
parent3cebd216b5fe3d2689e3200cecfa6803678c6d57 (diff)
downloadaports-7467d292063c766cc80129520e9ca22c9c096705.tar.bz2
aports-7467d292063c766cc80129520e9ca22c9c096705.tar.xz
main/rpcbind: use 'rpc' as user, fix startup
Diffstat (limited to 'main/rpcbind/rpcbind.pre-install')
-rw-r--r--main/rpcbind/rpcbind.pre-install5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/rpcbind/rpcbind.pre-install b/main/rpcbind/rpcbind.pre-install
new file mode 100644
index 0000000000..8db3128626
--- /dev/null
+++ b/main/rpcbind/rpcbind.pre-install
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+addgroup -S rpc 2>/dev/null
+adduser -S -h /var/lib/rpcbind -s /sbin/nologin -D -G rpc rpc 2>/dev/null
+exit 0