diff options
author | root <root@rshg054.dnsready.net> | 2012-09-08 00:04:17 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-09-08 00:04:17 +0000 |
commit | c85b504e8916411d424cd3fc654ff879237d529e (patch) | |
tree | 3107088a155cd162c6fa050327d5f9f6a9c410d9 /gnome-unstable/polkit/polkit.install | |
parent | ed51a8c1611ffa602f5f9628c858f6edbc218fc8 (diff) |
Sat Sep 8 00:04:17 UTC 2012
Diffstat (limited to 'gnome-unstable/polkit/polkit.install')
-rw-r--r-- | gnome-unstable/polkit/polkit.install | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gnome-unstable/polkit/polkit.install b/gnome-unstable/polkit/polkit.install new file mode 100644 index 000000000..fbb98919e --- /dev/null +++ b/gnome-unstable/polkit/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 +} |