summaryrefslogtreecommitdiff
path: root/user/polkit/polkit.pre-install
diff options
context:
space:
mode:
authorMax Rees <maxcrees@me.com>2018-09-04 15:53:53 -0400
committerMax Rees <maxcrees@me.com>2018-09-04 15:53:53 -0400
commit4337746011f78cd7d77330f2fb7ab52ee857a682 (patch)
tree2506c0e21a933024f5f90d32306320933a0ecc2e /user/polkit/polkit.pre-install
parent745fc5ef96cbf0d81c35baed546df9636e3b94a2 (diff)
downloadpackages-4337746011f78cd7d77330f2fb7ab52ee857a682.tar.gz
packages-4337746011f78cd7d77330f2fb7ab52ee857a682.tar.bz2
packages-4337746011f78cd7d77330f2fb7ab52ee857a682.tar.xz
packages-4337746011f78cd7d77330f2fb7ab52ee857a682.zip
user/polkit: add polkitd user and group
Diffstat (limited to 'user/polkit/polkit.pre-install')
-rw-r--r--user/polkit/polkit.pre-install5
1 files changed, 5 insertions, 0 deletions
diff --git a/user/polkit/polkit.pre-install b/user/polkit/polkit.pre-install
new file mode 100644
index 000000000..816f89236
--- /dev/null
+++ b/user/polkit/polkit.pre-install
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+useradd -r -s /sbin/nologin -d /usr/lib/polkit-1 -M -U polkitd 2>/dev/null
+
+exit 0