diff options
| author | Brian Bidulock <bidulock@openss7.org> | 2015-06-10 15:33:32 -0600 |
|---|---|---|
| committer | Brian Bidulock <bidulock@openss7.org> | 2015-06-10 15:33:32 -0600 |
| commit | fa3e2e74e8da040429332ecc468b29e9e44ef0cc (patch) | |
| tree | e13ab1f4ea6bc80da8738af31a8461e992094b16 /polkit.install | |
| download | polkit-git-fa3e2e74e8da040429332ecc468b29e9e44ef0cc.tar.gz polkit-git-fa3e2e74e8da040429332ecc468b29e9e44ef0cc.tar.bz2 | |
initial version
Diffstat (limited to 'polkit.install')
| -rw-r--r-- | polkit.install | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/polkit.install b/polkit.install new file mode 100644 index 0000000..fbb9891 --- /dev/null +++ b/polkit.install @@ -0,0 +1,18 @@ +post_install() { + getent group polkitd >/dev/null || groupadd -g 102 polkitd + getent passwd polkitd >/dev/null || useradd -c 'Policy Kit Daemon' -u 102 -g polkitd -d '/' -s /bin/false polkitd + passwd -l polkitd &>/dev/null +} + +post_upgrade() { + post_install +} + +post_remove() { + if getent passwd polkitd >/dev/null; then + userdel polkitd + fi + if getent group polkitd >/dev/null; then + groupdel polkitd + fi +} |
