summaryrefslogtreecommitdiff
path: root/user/polkit/polkit.pre-upgrade
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-12-31 07:12:44 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-12-31 07:12:44 +0000
commit2bdb8cb19e8458190d106a1a665cd5ce57cb49da (patch)
tree87575d74185cdf6fe51138de70fd71a2c4786c71 /user/polkit/polkit.pre-upgrade
parent683a271c5ec4b97e66777769431735dba5ed46f1 (diff)
downloadpackages-2bdb8cb19e8458190d106a1a665cd5ce57cb49da.tar.gz
packages-2bdb8cb19e8458190d106a1a665cd5ce57cb49da.tar.bz2
packages-2bdb8cb19e8458190d106a1a665cd5ce57cb49da.tar.xz
packages-2bdb8cb19e8458190d106a1a665cd5ce57cb49da.zip
user/polkit: create user ID if it isn't extant
Diffstat (limited to 'user/polkit/polkit.pre-upgrade')
-rw-r--r--user/polkit/polkit.pre-upgrade5
1 files changed, 5 insertions, 0 deletions
diff --git a/user/polkit/polkit.pre-upgrade b/user/polkit/polkit.pre-upgrade
new file mode 100644
index 000000000..816f89236
--- /dev/null
+++ b/user/polkit/polkit.pre-upgrade
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+useradd -r -s /sbin/nologin -d /usr/lib/polkit-1 -M -U polkitd 2>/dev/null
+
+exit 0